Bright Labs

Site Health says your PHP is outdated: what the WordPress warning means and how to fix it safely

If Tools > Site Health shows "Your site is running an outdated version of PHP, which requires an update", your server runs an older PHP version than WordPress recommends. WordPress's own Update PHP page says that if your version is at or higher than PHP 8.3, you don't need to update yet. Below that, here's the order: back up, update everything, check your plugins and themes against the new version, then switch PHP. Use a staging copy first if your host gives you one.

The risky moment is the PHP switch itself, so each step below keeps a way back open: a backup you can restore, a staging copy to test on, and a host who can move the version back if needed.

What the outdated PHP warning means

Site Health sorts what it finds by severity: critical issues, recommended improvements and passed tests. The outdated PHP message is in the critical issues list. WordPress's Site Health docs describe critical issues as parts of your site that can be potential security vulnerabilities or serious performance issues.

The same docs say newer PHP versions are created with increased performance in mind. On the security side, the PHP project fully supports each release branch for two years from its first stable release, then for two more years for critical security issues only. For an end-of-life branch, PHP's own advice is blunt: users should upgrade as soon as possible, because they may be exposed to unpatched security vulnerabilities.

Does an old PHP version stop WordPress from working? Not necessarily. WordPress's requirements page recommends PHP version 8.3 or greater, and also says WordPress works with PHP 7.4+ and MySQL 5.5.5+. It warns that older versions may expose your site to security vulnerabilities. So on 7.4 or newer, the warning is about risk, not about something failing today.

Check which PHP version your site runs

In your dashboard, open Tools > Site Health, then select the Info tab. Expand the Server section, which shows information related to your server setup. Look for your PHP version there.

You might also see a notice on your Dashboard that says "PHP Update Recommended". Treat it as the same reminder.

One thing that's easy to miss: you can't fix this from Site Health. The docs say plainly that you cannot configure any of the settings from the Info screen. So plan to make the PHP change with your host.

While you're on the Info tab, note that it lets you copy all of the information about your site to the clipboard. Paste that into your note to your host.

Back up and update everything first

Make a full backup before you change anything. WordPress's Update PHP page puts it this way: a backup lets you revert your site to how it is right now. It also points out the part people forget: to go back, you'll also need your web host to move your PHP version back to your current version. A backup alone doesn't undo a PHP switch.

Then open Dashboard > Updates and update everything: WordPress core, plugins and themes. Load a few key pages afterwards and confirm the site still works on your current PHP version. That way, if something breaks later, you know the PHP switch caused it and not the updates.

Check your plugins and themes against the new PHP version

This is the part that decides whether the switch is boring or painful. WordPress suggests checking when each plugin and theme was last updated on its WordPress.org page. Something that hasn't had a release in years is the first thing to look at.

If you'd rather read the code than guess from release dates, we make a free plugin for this, Bright Labs Compatibility Scanner for PHP. It reads the code of every installed plugin and theme and lists each file and line that uses something removed or deprecated in the PHP version you pick, from PHP 8.2 to 8.5. It runs inside WordPress in short steps and needs no exec() or shell access, so it still works if your host switches those off. It checks code without running it, so it can miss code built at runtime and flag code that never runs. Treat a clean result as a good sign, not a promise, and still test on staging.

Switch PHP at your host, on staging first

WordPress's advice is clear: if your hosting company offers a staging site, update PHP there first and test your site before updating your live site.

On staging, click through the pages that matter: home, a post, a contact form, checkout if you sell things, and the admin screens you use daily. Watch for blank areas, error messages and features that quietly stopped working.

If you can't find the setting, WordPress's Update PHP page says that if your host isn't on its list of instructions, you should email your hosting company and ask them to help. Here's a short note you can adapt.

Example you write: a note to your host
Hi, Site Health on my WordPress site says it runs an outdated PHP version.
Can you tell me how to switch this site to PHP 8.3 or newer?
Do you offer a staging copy so I can test the new version first?
If something breaks after the switch, how do I move back to my current version?

Once staging looks good, make the same switch on the live site and repeat the same quick click-through.

If the site breaks after the switch

Don't panic and don't start editing plugin files on the live site. WordPress's advice is to either change the PHP version back yourself, contact your hosting company or a professional web developer. If you can't switch back yourself, ask your host to restore the previous version of PHP you had running. Then restore your backup if you need to.

Going back buys you time. Once the site works on the old version, you can find the plugin or theme that failed on staging, update or replace it, and try again.

Confirm the warning is gone

After the switch, open Tools > Site Health again. The outdated PHP item should no longer be under critical issues. The passed tests section lists the other items Site Health tested and found no issues with. Check the Info tab's Server section too, so you see the new version in your server info yourself.

Then put a reminder in your calendar. Each PHP branch gets two years of full support and two more years of critical security fixes only, so the version you move to won't stay current forever. Doing the same checks a few months early beats doing them in a rush.

Sources

Questions

Is my site broken if Site Health says PHP is outdated?

Not necessarily. WordPress also works with PHP 7.4+, so on 7.4 or newer the site can keep running. The warning is about risk: WordPress recommends PHP version 8.3 or greater, and says older versions may expose your site to security vulnerabilities.

Can I update PHP from the Site Health screen?

No. You can't configure any of the settings from the Site Health Info screen. Make the change with your host; if you can't find how, email your hosting company and ask them to help.

What if the site breaks after I switch PHP?

Change the PHP version back yourself, or ask your host to restore the previous version you had running. Then restore your backup if needed. Find the plugin or theme that failed on a staging copy before you try again.

Does a clean compatibility scan mean the upgrade is safe?

Not on its own. Bright Labs Compatibility Scanner for PHP reads code without running it, so it can miss problems in code built at runtime and can flag code that never runs. Treat a clean result as a good sign, and test on a staging copy before a big upgrade.

Related