PHP end-of-life dates
Which PHP versions still get security fixes, when the rest stopped, and what to do if your application runs on one of them. Dates last checked against php.net on 22 November 2026.
| Version | Released | Active support until | Security fixes until | Status |
|---|---|---|---|---|
| PHP 5.3 | End of life | |||
| PHP 5.4 | End of life | |||
| PHP 5.5 | End of life | |||
| PHP 5.6 | End of life | |||
| PHP 7.0 | End of life | |||
| PHP 7.1 | End of life | |||
| PHP 7.2 | End of life | |||
| PHP 7.3 | End of life | |||
| PHP 7.4 | End of life | |||
| PHP 8.0 | End of life | |||
| PHP 8.1 | End of life | |||
| PHP 8.2 | Security fixes only | |||
| PHP 8.3 | Security fixes only | |||
| PHP 8.4 | Active support | |||
| PHP 8.5 | Active support | |||
| PHP 8.6 | Active support |
Source: the PHP project's official support schedule. Since the 2024 release-cycle change (applied from PHP 8.1 on), each version gets active support until 31 December two years after its release, then security fixes only until 31 December four years after its release.
What end-of-life means
When a PHP version reaches end-of-life, the PHP project stops releasing fixes for it, including security fixes. Vulnerabilities found afterwards stay open on every server that runs that version. Composer packages also drop support, so you can no longer install security updates for your libraries either.
Some Linux distributions, such as Debian, Ubuntu and Red Hat, backport security fixes into the PHP packages they ship, sometimes for longer than php.net. If your server runs a distribution package, check that distribution's support dates as well.
If you run PHP 5.6 or 7.x
You are several years past the last security fix. The code most likely uses functions that no longer exist in PHP 8, such as mysql_*, each() or create_function(), so switching the server alone will break the application. Plan a tested upgrade, ideally together with a security audit, because code from that era often has SQL injection and weak password hashing too.
If you run PHP 8.0, 8.1 or 8.2
The step to PHP 8.5 is much smaller. The main work is deprecations: dynamic properties, null passed to built-in functions, and dependencies that need a newer major version. PHP 8.2 support ends on 31 December 2026, so this is the time to schedule it.
Need help?
I'm Daniel Kisantal, a freelance PHP developer. I upgrade legacy PHP applications to supported versions, test-first and without downtime. How a PHP 8 upgrade works, or email daniel@kisasztal.com.
Questions
When does PHP 8.2 reach end of life?
PHP 8.2 receives security fixes until 31 December 2026. After that date it is end-of-life and newly found vulnerabilities are no longer fixed by the PHP project.
Is PHP 7.4 still safe to use?
No. PHP 7.4 has had no official security fixes since 28 November 2022. Unless your Linux distribution still backports fixes into its own PHP 7.4 package, known vulnerabilities stay open.
Which PHP version should I upgrade to?
PHP 8.5 is the usual target: it is actively supported until the end of 2027, gets security fixes until the end of 2029, and current libraries support it. PHP 8.6, released in November 2026, is a good choice once all your dependencies work with it.
How do I check which PHP version my site runs?
Run php -v on the server, or print PHP_VERSION from a script. The command line and the web server can use different PHP versions, so check the one that serves your site.
Can I upgrade from PHP 5.6 directly to PHP 8?
The server can switch in one go, but the code usually needs fixes for PHP 7 and PHP 8 changes first, tested step by step. See how a PHP 8 upgrade works.