Skip to content

Does a PHP upgrade make your application faster?

Your application is slow, and someone has a simple answer: switch to the latest PHP version, it’s supposed to be much faster. That sounds tempting, because the upgrade is due anyway for the security updates. After the upgrade, everything runs almost exactly as before, the budget is spent, and the actual cause is still sitting in the code or the database. The measurements show what a PHP upgrade does for speed and what it doesn’t.

By Dimitri König4 min read

PHP versions with release date and end of security updates
VersionSecurity updates untilTime leftStatus
PHP 8.6latest 8.6.0released Nov 19, 2026SupportedDec 31, 20301,498 days left1,498 days leftSupported
PHP 8.5latest 8.5.13released Nov 20, 2025SupportedDec 31, 20291,133 days left1,133 days leftSupported
PHP 8.4latest 8.4.28released Nov 21, 2024SupportedDec 31, 2028768 days left768 days leftSupported
PHP 8.3latest 8.3.37released Nov 23, 2023Security updates onlyDec 31, 2027402 days left402 days leftSecurity updates only
PHP 8.2latest 8.2.36released Dec 8, 2022Support ending soonDec 31, 202637 days left37 days leftSupport ending soon
PHP 8.1latest 8.1.34released Nov 25, 2021No longer supportedDec 31, 2025expiredexpiredNo longer supported
PHP 8.0latest 8.0.30released Nov 26, 2020No longer supportedNov 26, 2023expiredexpiredNo longer supported
PHP 7.4latest 7.4.33released Nov 28, 2019No longer supportedNov 28, 2022expiredexpiredNo longer supported
Data: endoflife.date and php.net Supported Versions, retrieved Nov 24, 2026. Time left calculated on Nov 24, 2026.

What the benchmarks show about the speed of new PHP versions

Two independent series of measurements by Tideways and Kinsta from late 2025 ran the same applications on different PHP versions and counted how many requests per second they answered.

Measurement PHP change Result
Tideways, WordPress 7.4 → 8.x about 5% more requests per second
Tideways, WordPress, Laravel, Symfony 8.4 → 8.5 no visible difference
Kinsta, WordPress 7.4 → 8.5 139 → 148 requests per second, about 7% more
Kinsta, WooCommerce 7.4 → 8.2 44 → 55 requests per second, about 23% more, then stable through 8.4
Kinsta, Laravel and Symfony 8.2 → 8.5 flat, fluctuations within the margin of measurement error

Tideways concludes from its measurements that the latest PHP version is no shortcut to better performance. There is one outlier: Kinsta measures a jump to 71 requests per second for WooCommerce on PHP 8.5, but itself suspects that it’s related to a much smaller response in the test and not to PHP alone.

Both benchmarks measured fresh default installations, in Laravel’s case the empty welcome page, on a large test machine. Your application spends its time elsewhere.

Does the JIT compiler make PHP faster?

PHP 8.0 introduced a JIT compiler that translates PHP code into machine code at runtime. The announcement on php.net is honest: about three times faster in synthetic benchmarks, 1.5 to 2 times faster in some long-running applications, and roughly on par with PHP 7.4 for typical applications. The JIT speeds up pure computation. A shop, a CMS or a customer portal computes little and waits a lot, above all for the database.

Where a PHP application’s load time really goes

During a typical page request, PHP only computes for part of the time. The rest of the time, it waits:

  • for the database, for example with hundreds of individual queries per list or with queries that lack a suitable index,
  • for a cache that is missing or bypassed, so every page is built from scratch,
  • for external services such as an ERP, payment providers, shipping or license checks,
  • for email delivery and PDF generation that run in the middle of the request instead of in the background.

An example calculation: if a page takes 2 seconds and 1.6 of them go to the database, that leaves 0.4 seconds for PHP. If PHP gets 10% faster, the page saves 0.04 seconds. A missing index or a cache that doesn’t hit often costs many times that.

Which spots typically slow an application down is covered in the articles Why your admin keeps getting slower and Slow: is it the server or the frontend?, and how a page cache absorbs the load in the article Varnish or Vinyl Cache.

The PHP version itself makes an application noticeably faster in two cases: if your application still runs on PHP 5.6, because according to php.net PHP 7 was up to twice as fast, and for WooCommerce on PHP 7.4, where Kinsta measures about a quarter more requests per second with PHP 8.2.

During a PHP upgrade, the server configuration often does more than the version number: a properly configured OPcache and enough PHP processes for the number of visitors.

Why you still need to upgrade PHP

The PHP upgrade is a matter of security, not speed. PHP 8.1 stopped getting security updates on December 31, 2025, and PHP 8.2 only gets them until December 31, 2026. WordPress shows how widespread these versions are: according to WordPress.org statistics as of November 10, 2026, 22.6% of WordPress installations run on PHP 8.2 and 32.2% on PHP 8.1 or older. Once support ends, hosting providers gradually switch off old PHP versions or charge extra for them.

Plan the PHP upgrade as what it is: operations and security. How long your PHP version is covered and how long Swiss hosting providers will still offer it is covered in the article PHP End of Life, and how the upgrade works in the article PHP upgrade. WordPress has its own article: WordPress and PHP 8.2.

Tackling the PHP upgrade and speed together

A PHP upgrade requires testing the most important workflows anyway. Those tests are the right moment to measure speed too: server response time of the most important pages, and how long checkout, search, login and export take, once before and once after the upgrade. Then you know what the upgrade achieved and where the time still goes afterwards. A profiler shows the spots that are really worth working on.

If your application is too slow or too expensive to run, Unique-P’s Make your application faster and cheaper to run service starts with a diagnosis at a fixed price. It shows where the time goes and what each measure will achieve, instead of hoping for a version number. Then come the measures, and the values are measured and maintained.

After the measures, Unique-P’s ongoing maintenance keeps PHP up to date on a fixed schedule, so the next upgrade is no longer a project.

Sources

  1. [1]PHP Benchmarks: 8.5 vs. 8.4 vs. 8.3 and 7.4 · Tideways, November 19, 2025
  2. [2]The definitive PHP benchmarks · Kinsta, updated am December 13, 2025
  3. [3]PHP 8.0 Release Announcement (JIT) · php.net
  4. [4]PHP 7.0.0 Release Announcement · php.net
  5. [5]Supported Versions · php.net
  6. [6]WordPress PHP Version Stats · WordPress.org, retrieved November 10, 2026

Frequently asked questions.

Is PHP 8.5 faster than PHP 8.4?

PHP 8.5 is barely measurably faster than PHP 8.4. Tideways sees no visible difference between PHP 8.4 and 8.5 for WordPress, Laravel and Symfony. Kinsta also measures only small fluctuations for WordPress, Laravel and Symfony. Kinsta itself attributes a jump for WooCommerce on PHP 8.5 most likely to a smaller response in the test.

Is it worth enabling the JIT compiler?

Enabling PHP’s JIT compiler is rarely worth it for typical web applications. According to php.net, typical applications perform with JIT roughly on par with PHP 7.4; big gains show up in synthetic benchmarks and in individual compute-heavy, long-running applications. A shop or CMS is usually waiting for the database, not for the processor.

Can an application get slower after a PHP upgrade?

An application hardly gets slower because of the new PHP version itself: between PHP 8.2 and 8.5, the benchmarks show fluctuations of a few percent in both directions. More often it’s the environment, for example when OPcache or the number of PHP processes on the new system isn’t configured the way it was before. That’s why you measure at the same points before and after.

Which PHP version should I choose?

The best PHP version is the latest one your framework or CMS supports. As of November 2026, ideally PHP 8.4 or 8.5, with security updates until the end of 2028 and the end of 2029 respectively. PHP 8.3 is covered until the end of 2027 and is a sensible intermediate step. For the new PHP 8.6, php.net mentions individual optimizations but no numbers, and on release day hardly any framework had approved it.

PHP End of Life

How much work is the upgrade?

How much work a PHP upgrade is mainly depends on the starting version and on whether the framework or CMS has to be upgraded too. Within PHP 8, it’s usually a small step; from PHP 7.4 and older, functions are removed, and days can turn into weeks.

Planning a PHP upgrade