HttpArena
Frameworks

PHP web framework benchmarks: performance comparison

The fastest PHP web framework in HttpArena is true-async-server, with a composite of 4763 on HTTP/1.1 — 23 of 109 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry.

Compare any two PHP entries profile by profile →

Every PHP entry in the benchmark, compared on the composite score of each family, one table per league. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 1,000, and scales the sum by the entry's completeness factor. Frameworks, engines, experimental entries and infrastructure are separate leagues: each is normalized against its own leader, and they do not all count the same profiles, so a composite compares with the others in its table and with nothing outside it. Rank in its league is the entry's place 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 of a table. 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

Frameworks

FrameworkTypeCompositeRank in its leagueRank among PHP
true-async-serverEmerging tuned476323 of 1091 of 5
swooleFlagship tuned455724 of 1092 of 5
hyperfFlagship163265 of 851 of 2
php-fpmFlagship125971 of 852 of 2
symfony-spawn-tasEmerging tuned112295 of 1095 of 5

HTTP/2

Frameworks

FrameworkTypeCompositeRank in its leagueRank among PHP
true-async-serverEmerging tuned22177 of 411 of 4
php-fpmFlagship73718 of 312 of 4
swooleFlagship tuned47831 of 413 of 4
symfony-spawn-tasEmerging tuned6040 of 414 of 4

HTTP/3

Frameworks

FrameworkTypeCompositeRank in its leagueRank among PHP
php-fpmFlagship8565 of 16—

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among PHP
swooleFlagship tuned86526 of 391 of 2
hyperfFlagship10630 of 302 of 2

Questions

What is the fastest PHP web framework?

true-async-server leads the PHP web frameworks in HttpArena with a composite score of 4763 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 1,000. Against every language, true-async-server ranks 23 of 109 in its 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 2217 on HTTP/2 and 7 of 41 against all languages in its league.

What is the fastest PHP HTTP/3 server?

php-fpm, with a composite of 856 on HTTP/3 and 5 of 16 against all languages in its league.

What is the fastest PHP WebSocket server?

swoole, with a composite of 865 on WebSocket and 26 of 39 against all languages in its league.

How many PHP web frameworks are benchmarked?

5 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 leading PHP web framework, true-async-server, places 23 of 109 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 5 entries.

Every PHP entry

Other languages

C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Mojo · OCaml · Perl · Python · Ruby · Rust · Scala · Sober · Swift · TS · V · Valk · Zig

Results updated · Alpha Round · Compare two PHP entries · All languages · Open the leaderboard