A blank wall calendar above a website dashboard with charts, beside a tall server rack, shown as a flat vector illustration on a soft warm gradient background

Over half of all self-hosted WordPress sites are running a version of PHP that will be out of official support by January. About a third are already on versions the PHP project has stopped fixing, and PHP 8.2 — the second most popular version — joins them when its support ends on 31 December 2026.

The fix is usually a five-minute change in your hosting panel, but the risk of ignoring it is real: October's PHP2Shell scare showed what happens when a critical bug lands on versions nobody is obliged to patch. Check your version under Tools › Site Health › Info › Server, then use this guide to decide what to do about it.

The Numbers: 53% Past Support by January

The figures come from WordPress.org's PHP version statistics and php.net's end-of-life dates, checked on 28 November 2026. They count sites, not visitors, so a forgotten site counts the same as a busy shop — but the direction is unmistakable. The full breakdown, with sources, is in Adam Greenough's analysis of WordPress PHP versions.

PHP version Share of WordPress sites Official support ends
8.3 28% — the most common 31 December 2027
8.2 Second most common 31 December 2026
7.4 14% 28 November 2022 — already ended
8.4 Less than 7.4, despite two years out 31 December 2028
8.6 Barely registering yet 31 December 2030

Three numbers matter most. Thirty-one percent of WordPress sites run a PHP version the PHP project no longer fixes at all. Fifty-three percent will be past official support on 1 January 2027 if nobody upgrades. And PHP 7.4 — released in 2019 — is still on 14% of sites, four years after the PHP project stopped fixing it, which is more than PHP 8.4 even though 8.4 has been out for two years.

People are upgrading, just slowly. The share on PHP 8.2 or older has fallen about 2.4 points since 2 November, so at that pace the figure would be nearer 50% than 53% by 1 January. PHP 8.6 only came out on 19 November, so it is barely registering yet — see our PHP 8.6 release guide for what it brings.

What "End of Life" Actually Means

The PHP project gives each version two years of normal bug fixes, then two more years of security fixes only. After that, in PHP's own words, users "may be exposed to unpatched security vulnerabilities". The project stops fixing the version altogether — no more patches, however serious the bug.

Out of official support does not mean unpatched, though. Linux distributions, paid support services, and hosts carry on fixing old PHP behind the scenes, often without site owners knowing. That quiet patching is exactly what October tested — and it held, but only because people went out of their way to help.

WordPress itself moves slowly on this. It has tended to wait until a PHP version is on fewer than 5% of sites before dropping it, and PHP 7.4 is still on 14%. Five out of five times WordPress has raised its minimum PHP version since 2011, the new minimum was already past end of life. WordPress and most popular plugins are still being written for a version of PHP that came out in 2019.

October Proved the Risk Is Real: PHP2Shell

On 21 October the PHP project fixed two critical bugs, together known as PHP2Shell, that could let someone run their own code on a server without logging in. Details had leaked the day before, and the attack was serious enough that government sites in several European countries were taken offline as a precaution.

The official fixes covered PHP 8.2 to 8.5. But given the severity, the PHP security team made an exception for older versions and published minimal source backports for PHP 7.4, 8.0, and 8.1. It did not have to — and nobody could have complained if it had not.

Others went further: Ubuntu fixed every PHP version it supports, back to 5.5, and CloudLinux, which makes an operating system for shared hosting, fixed all 16 versions its customers use, from 5.2 to 8.5.

The response worked. Wordfence said it had blocked more than 74,000 attempts with no confirmed break-ins, and CISA, the US government's cyber security agency, added both bugs to its list of vulnerabilities known to be used in real attacks on 26 October. But the episode showed how much of the safety net for old PHP depends on volunteers and vendors choosing to help — not on any obligation.

November: No Exception This Time

Four weeks later, on 19 November, PHP put out another batch of security fixes, seven of them rated critical. Most need a fairly unusual setup to be exploited, but on some server configurations one could let someone run code on the server through an ordinary WordPress request.

This time the official fixes were for PHP 8.2 to 8.5 only, with no source patches for anything older. CloudLinux and Red Hat still patched their old versions, but a host that does not use something like those may have nobody patching its old PHP for these bugs. The October exception was a one-off, not a policy — and site owners on old PHP cannot count on a repeat.

A November advisory for the Apache HTTP Server shows the same pattern in another part of the stack: a remote-code bug in a component most WordPress sites depend on, with fixes for supported versions only. The details are in our Apache RCE guide.

A version that is no longer maintained is not automatically unsafe — it is unsafe when a bug is found and nobody is left to fix it. October's bug was fixed for old versions because the PHP team chose to; November's was not, because they chose not to. That choice is the whole risk.

So the question is not whether your site is on an old PHP version. It is whether anyone is still patching it, and what you will do when the next bug lands and they do not.

How to Check Your Version

In your WordPress dashboard, go to Tools › Site Health, open the Info tab, and look in the Server section. It shows the PHP version your site is running. The same page lists the server software and the database version, which are worth a look while you are there.

For most people, the version you find will be fine for now — but if it is 8.2 or older, it needs a plan before January. If it is 7.4 or older, it is already past official support, and the October and November bugs are the test of whether anyone is still patching it for you.

If you use WordPress.com, it updates PHP for you. Most managed hosts do the same, and the version they give you is usually the newest one your plugins support. If your host still offers PHP 7.4 or 8.0 as a choice, it is probably keeping it for sites that cannot upgrade — not because it is the right version for a new site.

Managed WordPress hosting is the simplest option if you do not want to think about this. The host picks a supported PHP version, patches it, and upgrades it for you. The trade-off is that you lose control over the timing: the host upgrades when it decides to, not when you do.

You can also check from the command line, if you have access: run php -v on the server, or ask your host's support team which PHP version your site uses. If you are on shared hosting, the answer is usually in your hosting panel, under the PHP settings.

The version number on its own is not the whole story. A site on PHP 7.4 with a host that patches it is safer than a site on PHP 8.2 with a host that does not. But the number is the place to start: check it, compare it against the official PHP supported versions list, and ask your host whether it patches the version you are on.

Who Still Patches Old PHP — and Who Does Not

Three groups still patch old PHP. Each of them has a reason, and each of them has a limit.

Your server's Linux distribution.

Ubuntu, Red Hat, and Debian all patch old PHP on their own timetables, and several did so for both the October and November bugs. Their support lasts as long as the operating system is supported, not as long as the PHP version is. Check which version your distribution still patches: Ubuntu's standard support lasts five years, Red Hat's ten, and Debian's five for the stable release.

Your host, and your paid support provider.

CloudLinux, TuxCare, and Zend all patch old PHP for their customers, and they did so for both the October and November bugs. CloudLinux fixed all 16 versions its customers use; TuxCare patches old PHP for as long as its customers pay for it. If you use one of these, ask them which versions they patch and until when.

Nobody else.

If none of those applies to your site, nobody is patching your PHP. The PHP project will not fix it, and your host may not either. That is the position 31% of WordPress sites are in, and it is the reason the October bug was a scare and the November bug was a warning.

That is why the version number alone does not tell you whether you are safe. A site on PHP 7.4 with a host that patches it is in a better position than a site on PHP 8.2 with a host that does not. The question to ask your host is not "what version am I on?" — it is "who patches this version, and until when?"

The Upgrade: Which PHP Version to Pick

The short answer is PHP 8.3. It is the most common version on WordPress, it has official support until 31 December 2027, and the plugin ecosystem is converging on it. If you upgrade once, upgrade to 8.3.

PHP 8.2 has the lowest support cost: it is the version most hosts offer, and most plugins already run on it. But it loses official support on 31 December 2026, so it is not a destination — it is a stepping stone.

PHP 8.3 has the widest plugin support and the longest runway: official support until 31 December 2027, and the version most hosts are moving to. If you can pick one version and forget about it for a year, pick 8.3.

PHP 8.4 is the upgrade path for sites that want the newest features: it is the version WordPress and most plugins are written for, and it has official support until 31 December 2028. If your plugins all support it, 8.4 is the better long-term choice.

PHP 8.6 is the newest version, released on 19 November 2026, with official support until 31 December 2030. But plugin support is still catching up, and the share of sites on it is barely registering yet. It is the version to watch, not the version to pick today.

Upgrading Without Breaking Your Site

That is the risk, and it is also the reason people put the upgrade off. A plugin that has not been updated for PHP 8.3 will still run on PHP 7.4, and the upgrade is the moment that gap shows up. The way to close it is to test first, and to have a way back.

A deprecation warning is a notice, not an error: it means a plugin is using a feature that PHP plans to remove, and it needs an update. A fatal error is the one that breaks the site. If the upgrade produces a fatal error, the plugin is not ready for the new version, and the fix is to update the plugin, not to roll PHP back.

If you are upgrading a production site, take a backup first, test on a staging copy, and upgrade during a quiet hour. Check the front page, the admin, the forms, and the checkout afterwards. If you do not have a staging copy, upgrade at a time when you can watch the site for an hour afterwards.

If you are on shared hosting, the upgrade is usually a setting in your hosting panel: pick the version, save, and check the site. If the site breaks, change the setting back — the old version is still there until you delete it.

If you manage your own server, the upgrade is yours to schedule: install the new PHP version alongside the old one, switch the site to it, and keep the old version installed until you are sure the new one works.

Frequently Asked Questions

How do I check my WordPress PHP version?

In your WordPress dashboard, go to Tools › Site Health, open the Info tab, and look in the Server section. It shows the PHP version your site is running. If you use WordPress.com, it updates PHP for you. Compare the version against the official PHP supported versions list to see whether it still gets security fixes.

What happens if I stay on PHP 7.4?

The PHP project stopped fixing 7.4 on 28 November 2022, so new security bugs in 7.4 get no official fix. Your host, Linux distribution, or a paid support service may still patch it — but only your host can confirm that, and the November fixes show the PHP project will not always make an exception. Plugins also stop updating on old PHP, so you lose plugin security fixes too.

Is my site safe on old PHP if my host patches it?

It can be, if the patching is real and current. Ubuntu, Red Hat, Debian, CloudLinux, and TuxCare all patch old PHP on their own timetables, and several did so for both the October and November bugs. The problem is verification: patched versions keep the old version number, so ask your host in writing which PHP versions they patch and until when.

Which PHP version should WordPress use in 2027?

PHP 8.3 is the safe choice for most sites: it is the most common version on WordPress, it has official support until 31 December 2027, and the plugin ecosystem is converging on it. PHP 8.2 loses support on 31 December 2026, so it is not a destination. PHP 8.6 is newest, but plugin support is still catching up. WordPress lists its minimum and recommended PHP versions on its requirements page.

Will upgrading PHP break my plugins?

It can, which is why you test first. WordPress has no "tested up to" field for PHP, so a plugin can claim "7.4 or higher" without ever having run on 8.3 or 8.4. Take a backup, test on a staging copy, upgrade during a quiet hour, and check the front page, admin, forms, and checkout afterwards. A deprecation warning means the plugin needs an update, not that PHP should be rolled back.

Should I switch to managed WordPress hosting?

If you do not want to track PHP versions yourself, yes — a managed host picks a supported version, patches it, and upgrades it for you. But check the host's patching policy first: which versions it offers, which it still patches after official support ends, and until when. Managed hosting removes the chore, not the check.