PHP 8.1 benchmarks – Continuation of the Nice performance trajectory

PHP 8.1 was released on Thursday as the last major feature release for this programming language. In this article you will find some references of PHP 8.1.0 on a Linux server powered by AMD EPYC compared to previous versions going back as far as PHP 5.6.

As previously stated, PHP 8.1 introduces many new language features such as “PHP fibers”, enumerations, read-only class properties, new fsync functions, and much more. PHP 8.1 is another great annual update for this server-side language. But as we have seen in the last few years since the end of the PHP 5.x era, performance has improved steadily.

In this article, you will find some initial PHP 8.1 benchmarks examining its performance against previous versions. All versions of PHP were recently built on the same system with the same packages and using the same build options. PHP 8.1, PHP 8.0.13, PHP 7.4.26, PHP 7.3.33, PHP 7.0.33 and PHP 5.6.40 were tested for this comparison. PHP 7.1 / 7.2 was left out due to segmentation flaws encountered when building and running these versions on this stack. PHP 5.6 was as far as tested, with 5.6.0 having been released in 2014, while PHP 5.6.40 as the latest point release dates from early 2019.

The tests were performed on an AMD EPYC 72F3 server running Ubuntu Linux.

About Jon Moses

Check Also

NSA, CISA say: don’t block PowerShell, here’s what to do instead

Image: Getty Images/iStockphoto Cybersecurity authorities in the United States, United Kingdom, and New Zealand have …