Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
PHP 8.2 Performance Continues Moving In The Right Direction
PHP 8.2 is introducing support for read-only (readonly) classes, a function for resetting the memory peak usage tracking, sensitive parameter value redaction in stack traces, deprecating of dynamic properties, and various other changes. Some testing over the weekend of PHP 8.2 Git went well and was uneventful.
From an AMD Ryzen 9 5950X developer box, I ran some benchmarks seeing how PHP 8.2 Git was comparing to the latest PHP 8.1.6 release on the same system as just some very preliminary benchmarks for this roughly half-way point through the PHP 8.2 cycle.
PHPBench was showing a roughly 2.5% increase in the PHP 8.2 performance over PHP 8.1, which isn't as large as seen as in some past releases, but keep in mind we are still far out from the actual PHP 8.2.0 release... And it's on top of the many performance gains already over the PHP 7.x and 8.x series.
There were small but measurable improvements in some of my own Phoronix Test Suite performance benchmarks for various PHP CLI tasks.
Like the time to generate many SVG graphs continues to improve with PHP 8.2.
The peak memory usage on PHP 8.2 Git is also lower than PHP 8.1.
So at least from my initial testing, PHP 8.2 continues moving in the right direction of being faster albeit by within a couple percent in the various tests so far and with slightly lower peak memory usage too. Of course, once the PHP 8.2 stable release is approaching I'll be back around with many more benchmarks and going back to comparing the performance to more historical PHP5 and PHP7 releases too.