14+ years building on WordPress / Replies in under 5 hours
WordPress 4 min read · Updated July 2026

Why Upgrade PHP on WordPress: Speed, Security, Support

Photo of Ajay Khandal
Ajay Khandal
WordPress Developer
TL;DR

WordPress officially recommends PHP 8.3 or greater; it still runs on PHP 7.4 but that version is fully end of life with no security patches at all. PHP 8.4 and 8.5 are the two versions currently in active support, with 8.2 and 8.3 down to security-fixes-only. Upgrading brings real, benchmarked performance gains from PHP 8's JIT compiler and opcache improvements, plus ongoing patches for vulnerabilities that stay open indefinitely on an end-of-life version. Check your current version under Tools → Site Health → Info → Server before deciding what to upgrade to.

PHP is the language WordPress itself is written in, so the PHP version running on your server sets a hard ceiling on your site’s speed and security — no plugin or theme choice can compensate for an outdated PHP version underneath them. WordPress officially recommends PHP 8.3 or greater; it will still technically run on PHP 7.4, but that version reached end of life years ago and no longer receives security patches of any kind.

Where PHP support actually stands right now

PHP version Status Security support until
7.4 and earlier End of life — no patches at all Already ended
8.2 Security fixes only End of 2026
8.3 Security fixes only End of 2027
8.4 Active support End of 2028
8.5 Active support (current release) End of 2029

“Security fixes only” means the version isn’t getting new features or performance work anymore, but known vulnerabilities still get patched. Once a version passes its security-support date entirely, nothing gets patched — that’s the point at which running it becomes a real liability rather than just a missed opportunity.

What actually improves when you upgrade

  • Real performance gains, not marketing language. PHP 8 introduced a JIT compiler and ongoing improvements to PHP’s internal opcode cache, and PHP 7.4 to PHP 8.x upgrades are consistently benchmarked as a meaningful speed improvement for typical WordPress workloads — this isn’t a “your mileage may vary” claim, it shows up in how fast pages generate on the server side.
  • Patched vulnerabilities, not just newer features. Every PHP release fixes security issues discovered in prior versions. Running an end-of-life version means every one of those since-discovered vulnerabilities stays open on your server indefinitely, since there’s no patch coming.
  • Plugin and theme compatibility going forward. Plugin developers increasingly write and test against current PHP versions. Staying several major versions behind means new plugin releases are more likely to silently misbehave or outright fail on your server.
  • Lower memory usage per request. Each PHP major version has generally reduced memory overhead per request compared to its predecessor, which matters directly for how many concurrent visitors a given hosting plan can serve before slowing down.

What a PHP upgrade does and doesn’t change

A PHP upgrade is a server-side change — it doesn’t touch your site’s design, content, or URLs, and visitors won’t see any difference in how pages look. What it changes is how fast PHP executes the code behind those pages and which known vulnerabilities are patched. The only visible risk is indirect: if a specific plugin or custom code relies on a PHP function that was deprecated or removed in the new version, that plugin (not your content) can break until it’s updated or replaced — which is exactly why the compatibility check below matters more than the upgrade step itself.

How to check what PHP version your WordPress site is running

In your WordPress dashboard, go to Tools → Site Health → Info → Server — it lists your current PHP version directly, no plugin required. Most managed WordPress hosts also show this on the hosting control panel, usually under a “PHP settings” or “server” section.

Before you upgrade

  • Check plugin and theme compatibility first. A handful of older or abandoned plugins genuinely break on newer PHP — check each active plugin’s “tested up to” PHP version before switching, not after.
  • Test on staging, not live. If your host offers a staging environment (most managed WordPress hosts do), upgrade there first and click through the site’s core functionality before touching production.
  • Back up before you touch anything. A full site and database backup immediately before the switch means a bad upgrade is a rollback, not an emergency.
  • Upgrade one major version at a time if you’re several behind. Jumping from 7.4 straight to 8.5 compounds every version’s compatibility changes at once — stepping through 8.2 or 8.3 first makes it easier to isolate what broke if something does.

For the actual upgrade steps once you’ve confirmed compatibility, the walkthroughs for upgrading to PHP 8.4 on Ubuntu and upgrading to PHP 8.5 on Ubuntu cover the Sury/Ondrej PPA setup, Apache and Nginx configuration, and the extension and troubleshooting steps specifically.

Once PHP is current, it’s worth running through the WordPress technical audit checklist to confirm the rest of the site is in similarly good shape, rather than treating the PHP upgrade as a one-off fix.

If you’d rather have someone else handle the upgrade end to end — compatibility check, staging test, and the switch itself — that’s covered under WordPress maintenance and care plans.

Frequently asked questions

WordPress officially recommends PHP 8.3 or greater. It will still run on PHP 7.4 or higher, but 7.4 reached end of life years ago and no longer receives security patches — WordPress.org's own requirements page specifically warns that running it exposes a site to known vulnerabilities.

It's safe when done in order: confirm your active plugins and theme are compatible with the target PHP version, test the upgrade on a staging copy first, and take a full backup immediately before switching production. Skipping the compatibility check is the most common cause of a broken site after a PHP upgrade — the upgrade itself rarely fails, plugin code that assumes an older PHP version does.

In wp-admin, go to Tools → Site Health → Info → Server — your current PHP version is listed there directly. Most managed WordPress hosting control panels also display it, typically under a PHP settings or server configuration section.

It can, if an active plugin or theme hasn't been updated to work with the newer PHP version — that's the actual risk, not the PHP upgrade process itself. Checking each plugin's listed compatibility and testing on staging before touching the live site avoids nearly all of this risk.

PHP 8's JIT compiler and opcache improvements over 7.4 are consistently benchmarked as a meaningful server-side speed improvement for typical WordPress workloads, though the exact gain depends on your specific plugin stack and hosting setup rather than being a fixed percentage across every site.

Photo of Ajay Khandal

Written by Ajay Khandal

I'm a freelance WordPress developer with 14+ years of experience building, fixing, and speeding up sites for businesses, agencies, and store owners across the US, UK, Europe, and Australia. I specialize in custom themes, WooCommerce, and performance — the kind of work that shows up as faster load times and fewer support tickets. No account managers, no outsourced tickets — you work directly with me, with replies typically inside 5 hours.

Work with me →