Supported PHP versions and end-of-life dates (PHP 7.4 to 8.6)
Which PHP versions are still supported, when each one gets its last bug fix and security release, and which version to choose for a new project.
Short answer: PHP 8.6, PHP 8.5, PHP 8.4, PHP 8.3, PHP 8.2 receive updates today. For a new project, use PHP 8.6. PHP 8.1 and older no longer get security fixes.
| Version | Released | Active support until | Security fixes until | Status |
|---|---|---|---|---|
| PHP 8.6 | 19 Nov 2026 | 31 Dec 2028 | 31 Dec 2030 | Active support |
| PHP 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 | Active support |
| PHP 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 | Active support |
| PHP 8.3 | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 | Security fixes only |
| PHP 8.2 | 8 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 | Security fixes only |
| 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 |
What "active" and "security" support mean
Active support means regular point releases, roughly monthly, with bug fixes and security fixes. Security support means releases only when a security issue needs fixing. After that, a version is end of life: newly found vulnerabilities stay unfixed in the official builds.
Some Linux distributions (Debian, Ubuntu LTS, Red Hat) backport security fixes to the PHP version they ship for longer. If you use a distribution package, its support window is what matters, but you still miss new language features and newer library releases.
Headline features by version
| Version | What it added |
|---|---|
| PHP 8.6 | Partial function application, clamp(), readonly property defaults, Io\Poll, Time\Duration |
| PHP 8.5 | Pipe operator, URI extension, clone with, #[\NoDiscard], array_first() and array_last() |
| PHP 8.4 | Property hooks, asymmetric visibility, lazy objects, HTML5 DOM parser, array_find() |
| PHP 8.3 | Typed class constants, #[\Override], json_validate(), dynamic class constant fetch |
| PHP 8.2 | Readonly classes, DNF types, true/false/null types, Random extension |
| PHP 8.1 | Enums, readonly properties, fibers, first-class callable syntax, never |
| PHP 8.0 | JIT, named arguments, match, nullsafe operator, union types, attributes |
| PHP 7.4 | Typed properties, arrow functions, preloading, FFI |
Details: PHP 8.6, PHP 8.5, PHP 8.4.
Which version should you run?
- New project: the latest release, PHP 8.6, once your framework supports it.
- Existing app on an end-of-life version: move to a supported version now. Jumping several versions is fine if you go one step at a time with tests; the upgrade checklist lists each step.
- Shared hosting: check the host's control panel; many let you choose per site. Make sure the command-line PHP matches, or Composer will resolve for the wrong version.
How to check your PHP version
php -v # command line
php -r 'echo PHP_VERSION;' # just the number
<?php phpinfo(); // in a browser (remove it afterwards)Related
ToolPHP upgrade checklistPick your current and target PHP versions and get every breaking change, deprecation and tooling step in between, as a checklist you can copy.GuideUpgrade PHP with RectorUpgrade a PHP application one version at a time: pin the baseline, let Rector rewrite syntax, let PHPStan find what Rector cannot, and prove it with tests before you switch runtimes.PHP versionsWhat's new in PHP 8.6PHP 8.6 was released on 19 November 2026. Partial function application, clamp(), readonly property defaults, Io\Poll and Time\Duration, plus the session and ValueError changes to check before upgrading.