How PHP 8’s JIT Boosts Performance: Benchmark Insights from Phoronix

Phoronix’s benchmark of PHP 8 (built from the latest Git source) compares it with PHP 7‑4, older 7.x releases, and legacy 5.x versions, showing a modest 7% speed gain without JIT and a dramatic 92% improvement when JIT is enabled, while highlighting I/O bottlenecks that limit gains in some tests.

21CTO
21CTO
21CTO
How PHP 8’s JIT Boosts Performance: Benchmark Insights from Phoronix

Foreign tech media Phoronix published a performance benchmark report for PHP 8. Because the official PHP 8 Alpha 1 is not expected until mid‑June, Phoronix built a test version from the latest PHP 8 Git source (as of the end of May). PHP 8 introduces a new JIT compiler, static return types, union types 2.0, and attributes.

The versions used for comparison are PHP 7.4.6, 7.3.18, 7.2.31, 7.1.33, 7.0.33, 5.6.39, 5.5.38, 5.4.44, and PHP 8 with JIT enabled.

All tested versions were built on the same system with identical compilers and PHP configuration files. The test environment is shown below:

The benchmark results are as follows:

Using PHPBench, the performance from PHP 7.4 stable to PHP 8 shows a modest improvement of about 7%. When JIT is enabled in PHP 8, the improvement is striking—approximately a 92% boost over PHP 7.4 stable. Compared with the oldest PHP 5.4, PHP 8 with JIT is five times faster.

Micro‑benchmarks of various PHP built‑in tests show PHP 8.0 is slightly faster than the already fast PHP 7.4, and enabling JIT makes it dominate the field.

When testing with Phoronix Test Suite Self Tests, PHP 8’s performance, whether JIT is enabled or not, does not show a clear advantage over PHP 7 because of I/O bottlenecks, resulting in limited overall differences.

In rendering and merge tests, enabling JIT in PHP 8 does not produce a noticeable advantage, but compared with old PHP 5 versions, PHP 8’s performance is significantly higher.

The aggregated scores across all tests indicate that PHP 8.0 runs roughly three times faster than PHP 5.4‑5.6, and with JIT enabled the gap widens to about four times.

Overall, the data suggest PHP 8.0 is a highly anticipated release, offering notable performance gains and new language features.

For detailed test results, visit https://www.phoronix.com .

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

performanceJITBenchmarkPHP8phoronix
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.