PHP versions: end of life and security status
In short
- Recommended: PHP 8.4 or 8.5 with the latest patch release.
- Minimum safe versions (as of 19.11.2026): 8.6.0 · 8.5.13 · 8.4.28 · 8.3.37 · 8.2.36.
- PHP 8.2 only receives security fixes until 2026-12-31 – plan your migration now.
- PHP 8.1 and older is end of life and receives no security updates.
All PHP versions at a glance
| Version | Released | Active support until | Security support until | Safe version | Status |
|---|---|---|---|---|---|
| PHP 8.6 | 2026-11-19 | 2028-12-31 | 2030-12-31 | ≥ 8.6.0 | Active |
| PHP 8.5 | 2025-11-20 | 2027-12-31 | 2029-12-31 | ≥ 8.5.13 | Active |
| PHP 8.4 | 2024-11-21 | 2026-12-31 | 2028-12-31 | ≥ 8.4.28 | Active |
| PHP 8.3 | 2023-11-23 | 2025-12-31 | 2027-12-31 | ≥ 8.3.37 | Security only |
| PHP 8.2 | 2022-12-08 | 2024-12-31 | 2026-12-31 | ≥ 8.2.36 | Ending soon |
| PHP 8.1 | 2021-11-25 | – | 2025-12-31 | none | End of life |
| PHP 8.0 | 2020-11-26 | – | 2023-11-26 | none | End of life |
| PHP 7.4 | 2019-11-28 | – | 2022-11-28 | none | End of life |
Data as of 19.11.2026. PHP 7.3 and older have been unsupported for years and are not listed.
Active support, security support, end of life – what does it mean?
Each PHP version receives two years of active support (bug and security fixes) after release, followed by two years of security-only fixes. After that it is end of life (EOL) – newly discovered vulnerabilities are no longer fixed.
The PHP2Shell vulnerabilities show why this matters: all supported versions received a fix on 21 October 2026 – PHP 8.1 and older did not.
Which PHP version should I use?
- New projects: PHP 8.5 or 8.4 – with the longest support window.
- Existing websites: at least a version that still receives security fixes. Check CMS, theme and plugin compatibility first.
- Always run the latest patch release of your branch (the third number, e.g. 8.4.27).
The next major release, PHP 8.6, is in the release-candidate phase and is expected towards the end of 2026.