If I had to name the single most overlooked speed fix in WordPress, it wouldn’t be a caching plugin or a CDN setting. It would be the PHP version your site runs on.
Almost every WordPress site runs PHP — it’s the engine that turns your theme, plugins, and database queries into an actual page. And PHP has gotten a lot faster over the years. If your site is still running PHP 7.4 (or older), every single page view is doing its work on an engine that’s years out of date, while the rest of the web has moved on to PHP 8.x.
The good news: upgrading is free, it usually takes ten minutes, and you don’t need to be a developer. Let me walk you through exactly how to do it without breaking anything.
Why Your PHP Version Affects Speed
Here’s the thing most site owners never realize: caching only helps when a page is already cached. The moment a visitor hits a page that isn’t cached — the first load after a purge, a logged-in user browsing your site, a WooCommerce cart page, anything with a contact form — PHP has to execute every line of code behind that page from scratch.
A newer PHP version executes that code faster. Full stop. That’s not a claim about one plugin or one optimization trick; it applies to your entire site, all at once. Theme code, plugin code, WordPress core itself — everything runs on PHP, so everything gets faster.
On top of that, newer PHP versions use memory more efficiently, which matters a lot on shared hosting where you’re sharing a server with hundreds of other accounts. Less memory per request means your site holds up better under traffic spikes instead of throwing those dreaded “500 Internal Server Error” pages.
And there’s a practical bonus: PHP 7.4 and older no longer receive security updates. Running an unsupported version isn’t just slow — it’s an open door. Most quality hosts and the WordPress team itself recommend running a supported, current version.
What the Numbers Look Like (Roughly)
I’m not going to throw a precise percentage at you, because real-world gains depend on your theme, your plugins, and your hosting. But the direction is consistent: sites moving from PHP 7.4 to PHP 8.x typically see noticeably faster uncached page loads, and server benchmarks have repeatedly shown each major PHP release since 7.4 improving request-handling speed.
Where you’ll feel it most:
- Time to First Byte (TTFB). This is the biggest one. TTFB measures how long the server takes to start responding, and that’s almost entirely PHP execution time on uncached pages. If you’ve been chasing a high TTFB score, your PHP version is worth checking before anything else. (For the full rundown, see our guide on WordPress TTFB too high fixes.)
- wp-admin speed. The WordPress dashboard is never cached, so every click in wp-admin is raw PHP execution. Upgrading often makes the backend feel dramatically snappier — publishing posts, managing products, running updates.
- Database-heavy pages. Search results, filtered product listings, archive pages — anything that leans on MySQL queries benefits because the PHP code processing those queries runs faster.
Step 1: Check Which PHP Version You’re Running
Before touching anything, find out where you stand. There are two quick ways:
Via WordPress (easiest): In your dashboard, go to Tools → Site Health → Info, then expand the “Server” section. It lists your PHP version plainly, along with your server software and database version. If it says anything below 8.0, you’re due for an upgrade. WordPress itself will also warn you right on the Site Health screen if your PHP version is outdated.
Via your hosting panel: Most hosts show the PHP version somewhere in the control panel — cPanel has “Select PHP Version” or “MultiPHP Manager,” Hostinger’s hPanel has a PHP Configuration section. If you can’t find it, the Site Health method never lies.
Step 2: Check Compatibility (Don’t Skip This)
Here’s the one step that separates a smooth upgrade from a broken site. Older plugins and themes sometimes use PHP functions that were removed or changed in newer versions. The fix is simple: check before you switch.
The quick audit:
- Go to Plugins → Installed Plugins and note anything that hasn’t been updated in a long time — a plugin abandoned two years ago is your biggest risk.
- Do the same for your theme under Appearance → Themes. If you’re running a theme that hasn’t seen an update in over a year, proceed carefully.
- Install the free PHP Compatibility Checker plugin (by WP Engine) and run it against PHP 8.2 or 8.3. It scans your active plugins and theme and flags code that won’t work on the new version. It’s not perfect, but it catches the obvious problems.
The safe approach — use a staging site:
Any decent host offers one-click staging. Clone your site to staging, switch the staging copy to the new PHP version, and click through everything: homepage, a few posts, your contact form, checkout if you sell anything. If staging works fine, your live site will too. This is the professional way to do it, and it takes the fear out of the process completely.
If a specific plugin fails the compatibility check or breaks on staging, you have options: check if there’s a newer version of that plugin, look for a modern replacement, or — as a last resort — stay one PHP version lower until the plugin catches up. What you should never do is keep the whole site on an ancient PHP version forever because of one neglected plugin.
Step 3: Back Up First
This should be muscle memory by now, but I’m saying it anyway: take a full backup before changing your PHP version. Files and database both. Your host’s backup tool works, or use a plugin like UpdraftPlus. In the extremely unlikely event something goes wrong, you want a restore point that’s minutes away, not a panicked support ticket.
Step 4: Upgrade the PHP Version
Now the actual upgrade. The exact clicks depend on your host, but the pattern is the same everywhere:
cPanel hosts: Open “MultiPHP Manager” (or “Select PHP Version”), select your domain from the list, choose PHP 8.2 or 8.3 from the dropdown, and apply. Some cPanel setups have both tools — MultiPHP Manager sets the version per domain, while Select PHP Version also lets you toggle extensions. You generally don’t need to change extensions; the defaults are fine for WordPress.
Hostinger (hPanel): Go to Websites → your site → PHP Configuration (under the Advanced section). Pick PHP 8.2 or 8.3 from the version list and save. The change applies within a minute or so.
Other hosts (SiteGround, Cloudways, Kinsta, etc.): Look for a PHP settings page in your hosting dashboard. Managed hosts sometimes handle this for you or require a support request — if you don’t see the option, ask their support; it’s a two-minute job for them.
Which version should you pick? At the time of writing, PHP 8.2 or 8.3 are the sweet spots — current, well-supported, and broadly compatible with the WordPress ecosystem. PHP 8.1 is fine too if your host doesn’t offer newer. Avoid jumping to the absolute latest release (like 8.4+) the week it comes out; let plugin developers catch up first.
Step 5: Verify and Test
The version change itself is instant, but don’t walk away yet:
- Confirm the new version. Go back to Tools → Site Health → Info → Server and verify it shows the new PHP version. If it still shows the old one, wait a few minutes and check again — some hosts take a moment to apply the change.
- Load your homepage and a few key pages. Check them logged out (incognito window) so you’re seeing what visitors see.
- Test interactive features. Submit your contact form, add something to the cart, log in and out. If you have a membership area or booking system, click through it.
- Check for PHP errors. If your site shows a white screen or error messages, the first thing to look at is your error log (most hosts provide one in the control panel). It will name the exact file and line causing the problem — usually one outdated plugin you can deactivate or replace. And remember: you can always switch back to the old PHP version in the same panel while you sort it out. The change is fully reversible.
What If Something Breaks?
Let’s be honest about the failure modes, because knowing them in advance makes this stress-free:
- White screen of death. Almost always one incompatible plugin or theme. Deactivate plugins one by one (or rename the plugins folder via FTP if you can’t reach wp-admin) until the site comes back, then identify the culprit.
- Specific feature stops working. A form, a slider, a payment gateway. Revert to the old PHP version, update or replace that component, then upgrade again.
- Deprecated warnings on screen. These look scary but are usually just notices — code that works today but won’t in a future version. If visitors can see them, turn off display_errors in your PHP settings (or ask your host to). Then fix or replace the offending plugin at your leisure.
In all of these cases, the escape hatch is the same: switch back to the previous PHP version in your hosting panel. Nothing is permanent. The upgrade is a setting, not a migration.
Make This a Habit, Not a One-Time Fix
PHP keeps improving, and each new version eventually becomes the old one. Put a twice-a-year reminder on your calendar to check Tools → Site Health and confirm you’re still on a supported version. Hosts occasionally upgrade versions on their own schedule, which is another reason to keep your plugins and theme updated — a well-maintained site can ride PHP upgrades without drama, while a neglected one turns every upgrade into a rescue mission.
And while you’re in optimization mode, a PHP upgrade pairs beautifully with the other fundamentals: if you haven’t already, work through our essential WordPress performance checklist and give your database some attention with our WordPress database cleanup guide — a lean database plus a modern PHP version is a combination that makes even modest shared hosting feel fast.
The Bottom Line
Upgrading PHP is the rare optimization that is free, takes minutes, requires no ongoing maintenance, and speeds up literally everything on your site at once. It’s the first thing I check on any slow WordPress site, and it’s the last thing most site owners think of.
Check your version today. If it’s 7.4 or older, back up, test on staging, and make the switch. Your visitors — and your PageSpeed scores — will notice.


One comment on “Upgrading PHP Is the Easiest WordPress Speed Win You’re Skipping”