PHP 8.1 reached the end of its community security support on December 31, 2025. Since then, vulnerabilities disclosed against it have not been fixed upstream. For many organizations this was the first 8.x release to age out, and it arrived sooner than expected.
Why 8.1 is still everywhere
PHP 8.1 was the release many teams chose when they finally left 7.4. It brought enums, readonly properties and fibers, and it was the stable 8.x target while frameworks and libraries caught up with 8.0's changes. Long-term support releases of popular Linux distributions shipped it as their default PHP, which put it on a great many servers without anyone choosing it.
The result: plenty of teams that think of themselves as "on PHP 8" are on a version that no longer receives fixes.
Why leaving is harder than it looks
Moving from 8.1 to 8.3 or later is smaller than leaving 7.4, but it is not free:
- Dynamic properties are deprecated in 8.2. Older code, and many libraries, assign undeclared properties constantly. Each one emits a deprecation notice.
- Implicitly nullable parameters are deprecated in 8.4. A typed parameter
with a
nulldefault and no?in its type triggers a notice. - Dependencies move at their own pace. Some packages dropped 8.1 support in new major versions that bring their own breaking changes.
- Operating system packages. If PHP came from the distribution, moving to a newer version can mean a new repository, a new OS release, or containers.
None of this is dramatic. All of it takes time, and it competes with everything else on the roadmap.
Three sensible next steps
1. Find every 8.1. Check every server, container image and CI pipeline. The version in production is often not the version the team thinks it is. Write the inventory down.
2. Decide per application. For each one: upgrade now, upgrade later under long-term support, or migrate. Small, well-tested applications should simply move to a current version. Large ones with deep dependency trees may need a few months, and should be covered while that happens.
3. Skip a version where you can. There is little reason to stop at 8.2, which reaches the end of community support at the end of 2026. Aim for 8.4 or 8.5, clearing deprecations on the way, so the next upgrade is a long way off.
If you are still on 7.4 or 8.0
Those versions have been unsupported for years. The same advice applies, with more urgency: cover them now, then plan the move, using our field guide to upgrading from 7.4 as a starting point.
Every PHP version's dates are on the PHP end-of-life timeline.