A date that governs your security
A PHP version past end of support no longer receives fixes. Every vulnerability published after that date stays open in your application until you change version, and no official patch will close it on that branch. For a CIO or IT director, the question goes beyond technical matters. It concerns risk control, the maintenance budget and the ability to demonstrate that the application estate is up to date.
This article explains how PHP organises its support, takes stock of the branches that are maintained at the date of writing, and proposes a method to decide and plan the upgrade. It does not repeat the migration approach from very old versions, covered in our article on migrating PHP 5.6 to PHP 8.3. It also does not detail the vulnerabilities published in November, presented in our article on PHP CVEs of 2026.
The lifecycle of a branch
The PHP project releases a new version every year. Each branch follows the same lifecycle, described on the page php.net/supported-versions.php. It has three stages:
- Active support. For two years after the first stable release, the branch receives bug fixes and security fixes, published in regular point releases.
- Security support. For two further years, only critical security issues are fixed. Point releases come as needed, depending on the number of reports.
- End of life. After four years in total, the branch is no longer maintained.
Two consequences for planning. First, a version still running in production may be in security-only support. It then no longer receives the bug fixes that affect your code, even though serious security issues are still fixed for a while. Second, the date that matters is not the release date of a version but the end of its security support.
Where each version stands at 22 November 2026
The calendar below was checked on php.net on 22 November 2026. Dates can change. Confirm them on php.net before making any decision.
| Branch | Release | Active support ends | Security support ends | Status at 22 November 2026 |
|---|---|---|---|---|
| 8.6 | 19 November 2026 | 31 December 2028 | 31 December 2030 | Active support |
| 8.5 | 20 November 2025 | 31 December 2027 | 31 December 2029 | Active support |
| 8.4 | 21 November 2024 | 31 December 2026 | 31 December 2028 | Active support |
| 8.3 | 23 November 2023 | 31 December 2025 | 31 December 2027 | Security support |
| 8.2 | 8 December 2022 | 31 December 2024 | 31 December 2026 | Security support |
| 8.1 and earlier | Not applicable | Not applicable | Not applicable | End of life (8.1: 31 December 2025) |
Four points deserve your attention:
- The 8.2 branch leaves security support on 31 December 2026. If an application still runs on 8.2, the window to upgrade it is short.
- The 8.3 branch has not received bug fixes since 31 December 2025. It stays covered by security fixes until 31 December 2027.
- The 8.4 branch leaves active support on 31 December 2026, and is then covered only by security fixes until 31 December 2028.
- The 8.1 branch and earlier are no longer maintained. The end-of-life page gives 31 December 2025 for 8.1.
What you expose by staying on an unmaintained version
The first risk is vulnerabilities. A flaw discovered in a branch at end of life has no official fix on that branch. You must then compensate with workarounds, which are often costly and fragile, or upgrade. The recent patches for PHP and for frameworks show that the delay matters. The article on PHP CVEs of 2026 details those published in November.
The second risk is erosion of the ecosystem. Frameworks, libraries and operations tools target maintained branches first. A dependency can stop working on your version without a single line of your code having changed. Each later fix then becomes harder, because it is made on a foundation that is deteriorating.
The third risk is contractual and organisational. Your hosting contracts, your security commitments to clients and your internal audits may require a maintained version. Review them before treating the question as purely technical.
Finally, there is a hidden cost: keeping an application on an old version ties developers up with workarounds instead of features. That time does not appear on any invoice, but it weighs on every quarter.
Planning the upgrade
The method below applies to a single application as well as to an estate. It follows the order in which decisions are made.
Inventory the estate
List every application, service and task that runs PHP. For each one, note the PHP version in production, the framework version, the extensions used, the Composer dependencies, the owner, the business criticality and the internet exposure.
Do not limit yourself to websites. Scheduled tasks, administration scripts, overnight batches and queue workers are often forgotten. They frequently run on an older version than the rest, simply because nobody looks at them.
Check dependencies and the framework
For each application, check the compatibility of the framework, libraries and extensions with the target version. Every blocking dependency needs an explicit decision: upgrade it, replace it or maintain it internally, with the cost that implies.
A PHP upgrade often requires a framework upgrade, and the two do not necessarily move at the same pace. Handle them in a clear order, or together if the framework requires it, rather than mixing them as you go.
Automate transformation and analysis
Automated refactoring tools, such as Rector, rewrite part of the obsolete usage. Static analysers, such as PHPStan, detect incompatible calls and poorly declared types, at a level of strictness that you raise gradually. They do not replace code review, but they greatly reduce manual work on straightforward code. Their use is presented in the article on migrating PHP 5.6 to PHP 8.3.
Strengthen tests before touching the code
Without tests, an upgrade rests on trust. Before changing code, cover the critical business paths with automated tests: login, amount calculation, document generation, exchanges with partner systems.
If the test base is weak, start with characterisation tests. They record current behaviour, including its quirks, so that the upgrade changes nothing you have not noticed. Then run the same suite on both versions and compare the results.
Roll out in stages
Prepare a staging environment as close to production as possible, with representative data. Then move the new version into production gradually: a limited share of traffic first, with monitoring of errors and response times, then a wider ramp-up.
Plan a rollback that is documented and tested before the switchover. Across an estate, start with a low-criticality application to validate the method, then apply it to the applications that matter most.
Set the timetable
An upgrade schedule takes into account freeze periods, delivery cycles and budgets. With the end of security support for the 8.2 branch on 31 December 2026, an upgrade started at year end leaves little room for testing. The subject then becomes a trade-off between a risk you know about today and the cost of a rushed upgrade.
Keep a decision log: the target version chosen, the blocking dependencies and the choices made, the owner of each application, and the end-of-support date of the current version. This document serves management as much as the technical team, and it avoids asking the same questions at every renewal.
Which version to target
The choice of target depends on how long the version will remain covered by fixes, relative to the planned production date. A branch still in active support offers the largest margin. The most recent branch, 8.6, released on 19 November 2026, has the longest support window in the calendar above. It is not necessarily the easiest to adopt, however, if your dependencies do not yet support it. For a branch released only days ago, wait for the first corrective release before adopting it in production.
So check compatibility before fixing the target. If a key dependency is not ready, a slightly older branch still in active support can be a reasonable compromise for a first step.
Conclusion
Upgrading PHP is rarely hard on purely technical grounds. What delays projects is the absence of an inventory, thin tests and a decision postponed. Start by knowing which versions are running, which dependencies block them and how much support window remains. The calendar gives the deadline; the inventory gives the scope.
To assess your estate and set an upgrade timetable, write to us at contact@your-digital-hub.com or explore our services, from migration to operations. You can also describe your application on our contact page.