Which PHP versions are still safe, and which are past end of support?
This page collects the full PHP support schedule — release dates, ends of bug-fix and security support — plus a practical answer to which version a project should target in 2026. Treat it as a reference point for planning upgrades, security audits and conversations with your hosting provider.
Key takeaway: In 2026 three versions are safe: PHP 8.4 and 8.5 (full support) and 8.3 (security fixes only until the end of 2027). PHP 8.2 reaches end of support on 31 December 2026. Everything older — 8.1, 8.0, 7.x, 5.6 — is past EOL and receives no patches.
How the PHP release cycle works
PHP ships a new major version once a year, in November or December. Every branch gets four years of support — the cycle was extended from three to four years in March 2024 (the "release cycle update" RFC):
- years 1–2: full support (active support) — bug and security fixes,
- years 3–4: security support — critical security fixes only, no bug fixes,
- after 4 years: end of life (EOL) — no patches, no releases.
Point releases (8.4.1, 8.4.2…) appear every few weeks within an active branch. After EOL a branch receives not even critical patches — that is the fundamental difference between an "old version" and an "unsupported version".
- ## Table: PHP versions and support dates
| Version | Released | End of bug fixes | End of security support | Status |
|---|---|---|---|---|
| PHP 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 | full support |
| PHP 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 | full support |
| PHP 8.3 | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 | security fixes only |
| PHP 8.2 | 08 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 | security fixes only — ending |
| PHP 8.1 | 25 Nov 2021 | 25 Nov 2023 | 31 Dec 2025 | end of life |
| PHP 8.0 | 26 Nov 2020 | 26 Nov 2022 | 26 Nov 2023 | end of life |
| PHP 7.4 | 28 Nov 2019 | 28 Nov 2021 | 28 Nov 2022 | end of life |
| PHP 7.3 | 06 Dec 2018 | 06 Dec 2020 | 06 Dec 2021 | end of life |
| PHP 7.2 | 30 Nov 2017 | 30 Nov 2019 | 30 Nov 2020 | end of life |
| PHP 7.1 | 01 Dec 2016 | 01 Dec 2018 | 01 Dec 2019 | end of life |
| PHP 7.0 | 03 Dec 2015 | 04 Jan 2018 | 10 Jan 2019 | end of life |
| PHP 5.6 | 28 Aug 2014 | 19 Jan 2017 | 31 Dec 2018 | end of life |
Dates come from the official php.net schedule and the endoflife.date listing (as of October 2026). The next release — PHP 8.6 — is expected at the end of 2026.
Warning: If your system runs on PHP 8.2, two months remain until the end of security support. If it runs on 8.3 — a year. Every version below 8.2 is unpatched today. Check your version with
php -vor in the hosting panel.
Which PHP version a project should target
The choice is a trade-off between newness and dependency compatibility. Practical recommendations for 2026.
| Situation | Recommendation | Why |
|---|---|---|
| New project | PHP 8.4 or 8.5 | full support for 3+ years, newest features |
| Application on 8.3 | keep 8.3, plan 8.4/8.5 for 2027 | support until the end of 2027, no rush |
| Application on 8.2 | migrate to 8.4 before 31.12.2026 | EOL in two months |
| Application on 8.0/8.1 | migrate to 8.4 now | past EOL, no patches |
| Application on 7.4 or older | staged migration (7.4 → 8.x) | no patches since 2022, growing risk |
| WordPress / PrestaShop | 8.3–8.4 eventually, after plugin checks | platforms support 8.x, plugins and modules decide |
The practical rule is simple: target a version with full support if your dependencies allow it. If not — pick the newest version the whole stack supports and plan the next step. "Staying on the old version because it works" postpones the cost rather than avoiding it.
What happens to a system after its PHP version reaches EOL
The system itself keeps running — the interpreter executes code as before. What changes is the environment.
-
Vulnerabilities stay unpatched. Every new flaw in the interpreter and standard libraries stays open forever. Some can be exploited remotely, without server access.
-
Dependencies stop updating. New library versions require newer PHP — without a migration you lose security fixes in dependencies too, not just the interpreter.
-
Hosts retire old versions. After EOL versions survive on servers for a year or two, then disappear or become a paid add-on. A migration under a hosting deadline costs more than a planned one.
-
The cost of people rises. Developers who know old versions are increasingly rare — maintenance rates climb and finding a contractor takes longer.
-
Formal requirements appear. Security audits, GDPR, and B2B client and insurer requirements increasingly ask about supported component versions. A system past EOL is a risk item in every such review.
-
The flip side: every upgrade is also a gain. PHP 8.x is significantly faster than 7.x and 5.6 (engine optimizations, JIT), and newer versions bring features that simplify code — from enums and readonly to property hooks. A migration is not just "patches", it is also performance and newer libraries.
How to plan an upgrade step by step
The order of work is the same regardless of the starting version.
- Check the state — PHP version, framework/platform version, dependency list and their requirements.
composer outdated, hosting panel,php -v. - Run a compatibility audit — PHPCompatibility and PHPStan show what will stop working on the target version. The result is a blocker list, i.e. the migration plan.
- Protect yourself with tests — critical-path tests before the migration; without them every behavior change surfaces in production.
- Refactor automatically — Rector ships rulesets for version transitions and does 80–90% of the mechanical work.
- Deploy through staging — the target version with the same extensions as production, tests, then production outside peak hours with a rollback plan.
The full description of each stage — with commands and configuration — is in the PHP migration guide. If you are on 8.2 and looking at the 31 December 2026 deadline, the scenario and timeline are in the article on the PHP 8.2 end of life.
PHP versions in numbers — what the data says
It is worth knowing how version adoption looks in practice, because it drives library and hosting support.
- PHP 5.6 died in 2018 but kept appearing in production for years — today it is rare, mostly in internal systems and "frozen" deployments.
- PHP 7.x dominated 2016–2022 — many applications from that era still run, often on 7.4.
- PHP 8.x is the current standard — 8.1 and older 8.x releases are gradually being replaced by 8.2–8.4.
- WordPress has recommended PHP 8.x since version 6.x, and PrestaShop 8/9 supports 8.1–8.4 — platforms pull the ecosystem upward.
For a system owner the conclusion is one: the further from current versions, the less support is available — libraries, contractors, hosts. Upgrading "one version" every two years is far cheaper than jumping three generations every six years.
Frequently asked questions
Which PHP version is the safest in 2026?
PHP 8.5 and 8.4 — both have full support (bug and security fixes). PHP 8.3 receives security fixes only, until the end of 2027. All versions 8.2 and older are in security support with an expiring term (8.2) or past EOL.
Is PHP 7.4 still supported?
No. PHP 7.4 ended security support on 28 November 2022. A system on 7.4 runs, but receives no patches — neither in the interpreter nor (through version requirements) in most updated libraries. Migrating from 7.4 to 8.x typically takes 1–2 weeks of work.
What is end of life (EOL) for a PHP version?
EOL is the moment a PHP branch stops receiving any updates — including critical security fixes. After EOL, newly discovered vulnerabilities stay unpatched. The EOL date is known in advance, which sets PHP apart from many open-source projects — you can prepare for it.
Can my hosting provider force me to upgrade PHP?
Indirectly, yes. Hosts retire support for versions past EOL — first they stop updating them, then remove them from servers or move them to paid "legacy add-ons". If the system does not run on a newer version, changing hosts is an additional cost and migration risk.
Can I buy extended support after a PHP version reaches EOL?
Yes — companies such as Zend or TuxCare sell commercial security patches for versions past EOL (extended support). This is a buffer solution for large systems mid-migration; it usually costs several to a dozen thousand PLN per year and does not replace the target upgrade.
How often should PHP be upgraded?
- Realistically: every 2–3 years, jumping one or two versions. Each single-version upgrade is cheap (days of work), while a jump across three generations is expensive and risky. The best rhythm is an upgrade a year or two before the current version's EOL, when libraries are already ready.