PHP 8.2 gets its last security fix on 31 December 2026. That's about a month away, and a month with Christmas in the middle of it, so if your app runs on 8.2 the time to plan the move is now rather than in the first week of January.
The reminder came from a write-up doing the rounds on Hacker News this weekend. It looked at WordPress.org's own PHP version statistics and worked out that more than half of WordPress sites will be on unsupported PHP when the new year starts. I checked the numbers against WordPress.org's published stats this morning and they add up: about 53% of sites are on PHP 8.2 or older, and about 31% are already on versions the PHP project no longer fixes.
That's WordPress. But WordPress is a good proxy for PHP in general, because it's the one place anyone publishes the numbers. Custom PHP apps, the internal tools and portals and booking systems that were built once and have quietly run ever since, don't report their PHP version to anyone, so there's no way of knowing. If you own one, it's worth five minutes to find out where yours stands.
The dates, from the PHP project itself
The PHP project publishes its support dates on php.net. Each version gets two years of active support (bug fixes and security fixes) and then two years of security fixes only. After that, nothing.
- PHP 8.2: security fixes end 31 December 2026.
- PHP 8.3: security fixes until 31 December 2027.
- PHP 8.4: active support until 31 December 2026, security fixes until 31 December 2028.
- PHP 8.5: security fixes until 31 December 2029.
- PHP 8.6: released 19 November 2026, security fixes until 31 December 2030.
PHP 8.1 reached end of life on 31 December 2025. PHP 8.0 went in November 2023 and 7.4 in November 2022. If you're on any of those, you're already past the line and 8.2 ending is the least of it.
What "end of life" actually means
Your app won't stop working on 1 January. Nothing switches off. The pages will load exactly as they did on 31 December.
What changes is that the next time a security hole is found in PHP itself, there won't be an 8.2 release that fixes it. The last security release came out on 19 November (I wrote it up over on rob-sherwood.co.uk), and for 8.2 it was a case of update, restart, job done. From January that option goes away.
There's also a knock-on effect. Libraries and frameworks drop old PHP versions from their own support, so a security fix in a package your app depends on may only come out for newer PHP. That's usually how old apps get stuck: not the language, but everything sitting on top of it.
One wrinkle: where your PHP came from
This is the bit people miss. The php.net dates apply to PHP as the PHP project ships it, and to anything that follows those releases (the official Docker images, most PPAs, builds from source).
If your server runs the PHP package that came with the Linux distribution, the distribution's security team may keep backporting fixes for as long as that release of the distribution is supported. Debian 12, for example, ships PHP 8.2 as its packaged version. So "we're on 8.2" can mean two quite different things. Check which one you are, and check your distribution's own security policy, before you either panic or relax.
To find out, run php -v on the server and look at where the package came from (on Debian or Ubuntu, apt policy php8.2 will tell you). Then check what the web server is actually using, because the command line and PHP-FPM aren't always the same version.
8.2 to 8.3 or 8.4 is usually the easy one
Here's the good news. If you're on 8.2, you've already done the hard part. The big breaks were 5 to 7 and 7 to 8, and we've written up what breaks when you move old PHP to 8 separately.
Moving from 8.2 to 8.3 is normally small. Moving to 8.4 is a bit more, mainly because 8.4 deprecates implicitly nullable parameter types (a typed parameter with a default of null but no question mark on the type), and older code and libraries are full of them. Deprecations don't break anything on their own, but they fill your logs, and they're a list of things that will break later.
Our advice for most apps:
- Get the app running on a copy with the new PHP version, with errors and deprecation notices logged.
- Update your Composer dependencies to versions that support the target PHP, and read their changelogs for anything that changed behaviour.
- Click through the things that matter: logins, payments, emails, imports, exports, scheduled jobs. Cron jobs are the ones that get forgotten, because they often run under the command line PHP, not the web one.
- Go to 8.4 if you can, which buys you until the end of 2028. If 8.4 throws up too much, 8.3 buys you a year and is a perfectly sensible stepping stone.
- Keep the old version installed for a week after you switch, so rolling back is a config change rather than a rebuild.
If you're thinking of jumping straight to 8.6, have a read of what 8.6 changes about sessions first. It's a good target, but it's newer and it does change some defaults.
If nobody's sure what the app runs on
That's no criticism. Developers move on, servers keep going, and nobody has a reason to look.
If that's you, our code audit (£250 + VAT) will tell you what PHP and libraries your app is on, what an upgrade would involve, and a fixed price for doing it. If you'd rather someone just kept on top of this sort of thing, PHP versions, patches, backups and the rest, that's what Look after it is for, from £355 a month + VAT. And if it's the server rather than the code you're worried about, the server health check over on my own site covers that side.
Either way, put 31 December in the diary. Then aim to have it done well before it.
Cheers, Rob

