Latest PHP version and end-of-life dates

The latest PHP version is 8.5.13, released October 21, 2026. PHP 8.5, 8.4, 8.3, 8.2 are supported; everything from 8.1 down gets no security fixes, including for PHP2Shell.

Supported PHP versions

VersionLatest releaseReleasedBug fixes untilSecurity fixes until
PHP 8.58.5.13Nov 20, 2025Dec 31, 2027Dec 31, 2029
PHP 8.48.4.28Nov 21, 2024Dec 31, 2026Dec 31, 2028
PHP 8.38.3.37Nov 23, 2023Dec 31, 2025Dec 31, 2027
PHP 8.28.2.36Dec 8, 2022Dec 31, 2024Dec 31, 2026

Each PHP version gets two years of bug fixes and then two more years of security fixes only, ending on December 31.

End-of-life PHP versions

VersionLast releaseEnd of lifePHP2Shell
PHP 8.18.1.34Dec 31, 2025No fix PHP2Shell fix status
PHP 8.08.0.30Nov 26, 2023No fix
PHP 7.47.4.33Nov 28, 2022No fix
PHP 7.37.3.33Dec 6, 2021No fix
PHP 7.27.2.34Nov 30, 2020No fix
PHP 7.17.1.33Dec 1, 2019No fix
PHP 7.07.0.33Jan 10, 2019No fix
PHP 5.65.6.40Dec 31, 2018No fix

Not sure what your site runs? Check your PHP version free, then follow the update guide for your host.

Every security fix PHP shipped this year, with the release that fixed it on each branch: PHP vulnerabilities by version. Moving up a version: how to update PHP.

Questions

What is the latest PHP version?

PHP 8.5.13, released October 21, 2026. It's the newest release of the PHP 8.5 branch.

Which PHP versions fix the October 2026 vulnerability?

PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36, released October 21, 2026, fix PHP2Shell (CVE-2026-109618 and CVE-2026-109619). Older releases on those branches, and every release of 8.1 and older, don't have the fix.

Which PHP versions are still supported?

PHP 8.5, 8.4, 8.3, 8.2. PHP 8.2 gets security fixes only until Dec 31, 2026.

When did PHP 8.1 reach end of life?

PHP 8.1 stopped getting security fixes on December 31, 2025. Its last release is 8.1.34, which has no PHP2Shell fix.

When does PHP 8.2 reach end of life?

PHP 8.2 gets security fixes until Dec 31, 2026. Plan a move to 8.3 or 8.4 before then.

When did PHP 7.4 reach end of life?

November 28, 2022. Its last release is 7.4.33. Sites still on 7.4 have gone almost four years without PHP security fixes.

Which PHP version should I use?

PHP 8.4 or 8.3 for most sites today. Both get security fixes for years and run current WordPress, Laravel and Drupal.