HttpArena
Frameworks

PHP web framework benchmarks: performance comparison

The fastest PHP web framework in HttpArena is true-async-server, with a composite of 5126 on HTTP/1.1 — 14 of 97 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. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 100, and scales the sum by the entry's completeness factor. 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

FrameworkTypeCompositeRank overallRank among PHP
true-async-serverEmerging tuned512614 of 971 of 5
swooleFlagship tuned489516 of 972 of 5
hyperfFlagship172857 of 761 of 2
php-fpmFlagship132962 of 762 of 2
symfony-spawn-tasEmerging tuned117383 of 975 of 5

HTTP/2

FrameworkTypeCompositeRank overallRank among PHP
true-async-serverEmerging tuned25303 of 311 of 4
php-fpmFlagship74612 of 232 of 4
swooleFlagship tuned53724 of 313 of 4
symfony-spawn-tasEmerging tuned6230 of 314 of 4

HTTP/3

FrameworkTypeCompositeRank overallRank among PHP
php-fpmFlagship8794 of 13—

WebSocket

FrameworkTypeCompositeRank overallRank among PHP
swooleFlagship tuned88117 of 311 of 2
hyperfFlagship10623 of 232 of 2

Questions

What is the fastest PHP web framework?

true-async-server leads the PHP entries in HttpArena with a composite score of 5126 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 14 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 2530 on HTTP/2 and 3 of 31 against all languages in its league.

What is the fastest PHP HTTP/3 server?

php-fpm, with a composite of 879 on HTTP/3 and 4 of 13 against all languages in its league.

What is the fastest PHP WebSocket server?

swoole, with a composite of 881 on WebSocket and 17 of 31 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 quickest PHP entry, true-async-server, places 14 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 5 entries.

Every PHP entry

Other languages

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

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