If you run a WordPress site, your host will probably move you to a newer PHP version soon. PHP 8.2 stops getting security fixes on 31 December 2026, and hosts don't like running versions that no longer get patched. PHP 8.1 already lost support at the end of 2025.
WordPress itself handles new PHP versions well. The risk is in your plugins and your theme. One old plugin that uses a function PHP removed is enough to give you a white screen the morning after the upgrade.
The good news: you can find out which plugins are a problem before the switch. Here's how.
Which PHP version is my site on?
In your WordPress dashboard go to Tools → Site Health → Info, open Server, and look at "PHP version".
| PHP version | Security support ends |
|---|---|
| 8.1 | Ended 31 Dec 2025 |
| 8.2 | 31 Dec 2026 |
| 8.3 | 31 Dec 2027 |
| 8.4 | 31 Dec 2028 |
If you're on 8.2 or older, expect an email from your host in the next few months. Most will move you to 8.3 or 8.4.
What actually breaks when PHP is upgraded?
Two kinds of problems show up:
- Errors. Code uses something PHP removed. Examples:
each(),create_function(), and old-style class constructors, all gone since PHP 8.0. These can stop a plugin, or the whole site, from loading. If you're jumping from 7.4, this is where most trouble comes from. - Deprecation warnings. Code uses something PHP plans to remove. Creating dynamic properties (deprecated in 8.2) and parameters that are null by default without saying so (deprecated in 8.4) are the common ones. The site keeps working, but your error log fills up, and the next upgrade may turn the warning into an error.
Most popular plugins fixed these long ago. The ones to worry about are plugins that haven't been updated in a year or two, custom plugins someone wrote for you, and older premium themes.
Option 1: test on a staging copy
Many hosts give you a one-click staging site. Copy your site, switch the copy to the new PHP version, and click around: the home page, a few posts, your forms, checkout if you have a shop. Watch for errors and blank pages.
This is the most realistic test. Its weak spot is that it only finds problems on pages you actually visit.
Option 2: scan the code with PHPCompatibility
PHPCompatibility is an open-source set of rules for PHP_CodeSniffer. It reads PHP code and reports anything that won't work on the version you choose. If you're comfortable with the command line and Composer:
composer config minimum-stability alpha composer config prefer-stable true composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true composer require --dev phpcompatibility/phpcompatibility-wp:3.0.0-alpha2 vendor/bin/phpcs -p --standard=PHPCompatibilityWP --runtime-set testVersion 8.4- --extensions=php wp-content/plugins I use the 3.0 alpha on purpose. The last stable release is from 2019 and doesn't know about most PHP 8 changes.
Option 3: a WordPress PHP compatibility checker plugin
For years the usual answer was WP Engine's PHP Compatibility Checker. Its plugin page now says it's no longer maintained, so I wouldn't rely on it for PHP 8.3 or 8.4.
I built a free replacement, Sahitya Readiness Scan for PHP. It runs the same PHPCompatibility rules inside WordPress, so you don't need a command line, and it checks PHP 8.2, 8.3, 8.4 and 8.5. A few things I cared about when building it:
- Does updating fix it? For plugins from WordPress.org it downloads the newest version and scans that too, so it can tell you "updating 3.1 → 3.24 fixes this" instead of just listing errors.
- Plain answers. Each plugin gets "No issues found", "Likely compatible" or "Issues found", with the file and line numbers one click away for your developer.
- Works on cheap hosting. The scan runs in steps of a few seconds, so it doesn't hit the 30-second timeout many shared hosts have.
- Read only. It never changes or updates anything.
It's a static scan, so like Option 2 it can miss problems that only happen while the code runs. It's a quick way to find the plugins that need attention, not a guarantee.
A simple upgrade checklist
- Back up your site (files and database).
- Scan your plugins and theme, or test on staging.
- Update every plugin that has a fix. Replace the ones that don't.
- Switch PHP on staging first if you can, then on the live site.
- Check your error log for a day or two after the switch.
- If something breaks, most hosts let you switch back in a minute while you sort it out.
If your host hasn't contacted you yet, now is a good time to do steps 1 to 3. It's much calmer than doing them the morning after.
Questions, or a plugin the scanner got wrong? Leave a comment and I'll take a look.
