PHP is the layer almost nobody thinks about until something breaks. It is also the single cheapest performance and security improvement available to most WordPress sites, and a meaningful share of the web is running a version that no longer receives patches.
Here is the current picture, what to target, and how to move without taking the site down.
Where each version stands
- PHP 8.1 and below. End of life. PHP 8.1 stopped receiving patches on 31 December 2025. Anything older stopped years ago. If you are here, this is urgent rather than a maintenance item.
- PHP 8.2. Security patches only, ending 31 December 2026. It works, but you have months rather than years, and you will be doing this again before the year is out.
- PHP 8.3. Security supported to the end of 2027. A reasonable holding position with excellent plugin compatibility.
- PHP 8.4. Supported to the end of 2028. Broad ecosystem track record by now. This is the target for most sites.
- PHP 8.5. Released November 2025, supported into 2029. Stable, and the major plugins including WooCommerce and Elementor run on it. Worth taking if you have verified every dependency.
The short answer for a normal business site: PHP 8.4. It is old enough that plugin authors have caught up and new enough that you are not repeating this exercise next year.
Why end of life PHP is a real risk, not a theoretical one
As of early 2026, roughly 55 percent of the top one million PHP sites were still running an end of life version. That is not a niche problem, and attackers know it.
The attack pattern is mechanical. Automated scanners read server fingerprints and response headers that reveal the PHP version, build a list of sites on unpatched versions, then probe that list against known exploits. Nobody is choosing your site specifically. You are on a list because your server announced itself. Most of the cleanup work described in our hacked site process starts with exactly this kind of unattended entry point.
How to check what you are on
In WordPress admin: Tools, then Site Health, then Info, then Server. The PHP version is listed there. It takes fifteen seconds and works on any WordPress site from 5.2 onwards without installing anything.
Your hosting control panel will also show it, usually under a PHP version selector. On most cPanel and managed WordPress hosts, changing the version there is a dropdown and a save, with no downtime.
The upgrade risk is never WordPress core
WordPress core is written to be conservative about PHP versions and handles upgrades cleanly. WordPress 7.0 confirmed compatibility with PHP 8.4 and added support for 8.5, while keeping the minimum floor low for compatibility reasons. That floor is a floor, not a recommendation. We covered what else changed in WordPress 7.0.
The risk sits in three places:
- Abandoned plugins. The most common failure. A plugin last updated four years ago using a function that PHP removed.
- Old themes. Particularly heavily customised commercial themes that were never updated after launch.
- Custom code. The functions.php additions and snippets that accumulated over the years, usually undocumented.
How to upgrade without a bad afternoon
- Update everything first. Plugins, theme, WordPress core. Most compatibility issues are already fixed upstream and you are just behind.
- Inventory the dead weight. Any plugin not updated in over two years is a candidate for replacement or removal before you touch PHP.
- Clone to staging. Every serious host offers this now. If yours does not, that is its own conversation.
- Switch PHP on staging and turn on debug logging. Set WordPress to log errors to a file rather than displaying them, then click through the site properly: the checkout, the forms, the admin screens, the pages a client actually uses.
- Read the log, not the homepage. Fatal errors are obvious. Deprecation warnings are the ones that tell you what breaks in the version after this one.
- Fix, replace, then repeat. Then apply to live at a quiet hour with a backup in place.
One warning. The old PHP Compatibility Checker plugin that people still recommend is abandoned and only checks up to PHP 8.0. Ignore it. Staging plus a debug log catches far more real world problems than a static scanner ever did.
If you do nothing
Your host decides for you. Managed platforms have been force migrating sites off end of life PHP throughout 2026, typically with warning emails and then a hard cutoff. When that happens, a lot of sites jump two or three versions at once, and the failures surface all together on a day nobody planned for.
Choosing the date yourself costs an hour on staging. Having it chosen for you costs an emergency.
Frequently asked questions
What PHP version should WordPress run in 2026?
PHP 8.4 for most production sites. It is actively supported, WordPress core and the major plugins have had long enough with it that compatibility is solid, and security support runs to the end of 2028. PHP 8.3 is an acceptable alternative if a critical plugin is not ready. PHP 8.5 is stable and fine if you have verified everything you depend on.
Is PHP 8.1 still safe to use?
No. PHP 8.1 reached end of life on 31 December 2025. Any vulnerability found in it since then goes unpatched. Automated scanners look for server fingerprints that reveal end of life PHP and then probe for known exploits, so running it is an active risk rather than a theoretical one.
How do I check which PHP version my site uses?
In WordPress admin go to Tools, then Site Health, then the Info tab, then expand the Server section. The PHP version is listed there. You can also see it in your hosting control panel, usually under a PHP version selector or PHP configuration.
Will upgrading PHP break my WordPress site?
WordPress core itself handles PHP upgrades well. The risk sits in plugins, themes and any custom code a previous developer left behind. Abandoned plugins are the usual culprit. The safe path is to test on a staging copy with debug logging enabled, fix or replace what complains, then upgrade the live site.
What happens if I do nothing?
Your host will eventually upgrade you without asking. Managed hosts have been force migrating sites off end of life PHP throughout 2026, usually with email warnings first and a hard cutoff after. If your site has an incompatibility, you find out when the site breaks rather than when you are ready to fix it.
Pingback: WordPress Maintenance Checklist for 2026 | TidWeb