PHP web framework benchmarks
The fastest PHP web framework in HttpArena is true-async-server, with a composite of 880 on HTTP/1.1 — 2 of 97 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry.
Every PHP entry in the benchmark, compared on the composite score of each family. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 100. Rank overall is the entry's place in its own league across all languages; rank among PHP narrows the same field to this language. Both link through to the board view they were taken in. How the score works.
Composite scores compare directly across every row. Ranks do not always share a field: a tuned entry has no place in the standard-only ranking, so its rank is taken from the field that includes tuned entries and counts more of them.
HTTP/1.1
| Framework | Type | Composite | Rank overall | Rank among PHP |
|---|---|---|---|---|
| true-async-server | Emerging tuned | 880 | 2 of 97 | 1 of 12 |
| swoole | Flagship tuned | 707 | 7 of 97 | 2 of 12 |
| ngx-php | Emerging tuned | 679 | 10 of 97 | 3 of 12 |
| mark | Emerging | 606 | 5 of 71 | 1 of 6 |
| workerman | Flagship | 576 | 7 of 71 | 2 of 6 |
| php-fpm | Flagship | 278 | 29 of 71 | 3 of 6 |
| symfony-spawn-tas | Emerging tuned | 206 | 55 of 97 | 7 of 12 |
| frankenphp-trueasync | Emerging tuned | 163 | 67 of 97 | 8 of 12 |
| hyperf | Flagship | 158 | 49 of 71 | 4 of 6 |
| symfony-spawn-franken | Emerging tuned | 157 | 72 of 97 | 10 of 12 |
| laravel | Flagship | 43 | 69 of 71 | 5 of 6 |
| slim | Flagship | 38 | 70 of 71 | 6 of 6 |
HTTP/2
| Framework | Type | Composite | Rank overall | Rank among PHP |
|---|---|---|---|---|
| true-async-server | Emerging tuned | 332 | 1 of 29 | 1 of 7 |
| ngx-php | Emerging tuned | 122 | 8 of 29 | 2 of 7 |
| php-fpm | Flagship | 83 | 5 of 16 | 3 of 7 |
| swoole | Flagship tuned | 68 | 15 of 29 | 4 of 7 |
| frankenphp-trueasync | Emerging tuned | 24 | 24 of 29 | 5 of 7 |
| symfony-spawn-franken | Emerging tuned | 8 | 27 of 29 | 6 of 7 |
| symfony-spawn-tas | Emerging tuned | 7 | 29 of 29 | 7 of 7 |
HTTP/3
| Framework | Type | Composite | Rank overall | Rank among PHP |
|---|---|---|---|---|
| ngx-php | Emerging tuned | 200 | 1 of 12 | 1 of 4 |
| php-fpm | Flagship | 101 | 1 of 6 | 2 of 4 |
| frankenphp-trueasync | Emerging tuned | 33 | 8 of 12 | 3 of 4 |
| symfony-spawn-franken | Emerging tuned | 28 | 9 of 12 | 4 of 4 |
WebSocket
| Framework | Type | Composite | Rank overall | Rank among PHP |
|---|---|---|---|---|
| swoole | Flagship tuned | 79 | 11 of 32 | 1 of 3 |
| workerman-websocket | Flagship | 75 | 7 of 20 | 1 of 2 |
| hyperf | Flagship | 10 | 20 of 20 | 2 of 2 |
Questions
What is the fastest PHP web framework?
true-async-server leads the PHP entries in HttpArena with a composite score of 880 on HTTP/1.1, measured over Alpha Round. The composite sums a normalized score across the profiles of a family, where the leader of each profile scores 100. Against every language, true-async-server ranks 2 of 97 in its own league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.
What is the fastest PHP HTTP/2 server?
true-async-server, with a composite of 332 on HTTP/2 and 1 of 29 against all languages in its league.
What is the fastest PHP HTTP/3 server?
ngx-php, with a composite of 200 on HTTP/3 and 1 of 12 against all languages in its league.
What is the fastest PHP WebSocket server?
swoole, with a composite of 79 on WebSocket and 11 of 32 against all languages in its league.
How many PHP web frameworks are benchmarked?
13 PHP entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, WebSocket. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.
Is PHP fast for web servers?
The quickest PHP entry, true-async-server, places 2 of 97 on HTTP/1.1 across every language in its league, so that placing is the honest answer for PHP at its best rather than for PHP in general. The tables below show the spread across all 13 entries.
Every PHP entry
- frankenphp-trueasync
- hyperf
- laravel
- mark
- ngx-php
- php-fpm
- slim
- swoole
- symfony-spawn-franken
- symfony-spawn-tas
- true-async-server
- workerman
- workerman-websocket
Alpha Round · All languages · Open the leaderboard