PHP versions

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.
VersionReleasedActive support untilSecurity fixes untilStatus
PHP 8.619 Nov 202631 Dec 202831 Dec 2030Active support
PHP 8.520 Nov 202531 Dec 202731 Dec 2029Active support
PHP 8.421 Nov 202431 Dec 202631 Dec 2028Active support
PHP 8.323 Nov 202331 Dec 202531 Dec 2027Security fixes only
PHP 8.28 Dec 202231 Dec 202431 Dec 2026Security fixes only
PHP 8.125 Nov 202125 Nov 202331 Dec 2025End of life
PHP 8.026 Nov 202026 Nov 202226 Nov 2023End of life
PHP 7.428 Nov 201928 Nov 202128 Nov 2022End of life

Status computed on 29 Nov 2026. Dates for PHP 8.1 and later follow the release-cycle policy adopted in 2024; earlier versions kept their original dates.

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

VersionWhat it added
PHP 8.6Partial function application, clamp(), readonly property defaults, Io\Poll, Time\Duration
PHP 8.5Pipe operator, URI extension, clone with, #[\NoDiscard], array_first() and array_last()
PHP 8.4Property hooks, asymmetric visibility, lazy objects, HTML5 DOM parser, array_find()
PHP 8.3Typed class constants, #[\Override], json_validate(), dynamic class constant fetch
PHP 8.2Readonly classes, DNF types, true/false/null types, Random extension
PHP 8.1Enums, readonly properties, fibers, first-class callable syntax, never
PHP 8.0JIT, named arguments, match, nullsafe operator, union types, attributes
PHP 7.4Typed properties, arrow functions, preloading, FFI

Details: PHP 8.6, PHP 8.5, PHP 8.4.

Which version should you run?

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)

A good place to start

What are you working on?

Tools, guides, PHP versions and the archive.

ToolJSON ↔ PHP arrayConvert JSON to a PHP array literal with short or array() syntax, or turn a PHP array back into JSON. Runs in your browser; nothing is uploaded.ToolSerialized data inspectorRead PHP serialized strings as a tree, find wrong string lengths after a search-and-replace, and rebuild them with correct byte counts. Parsed safely in your browser.ToolComposer constraint testerSee exactly which versions a Composer constraint such as ^2.1, ~1.4 or >=8.1 <8.4 allows, in plain English, and test versions against it.ToolPHP date() format builderBuild a PHP date() or DateTime::format() string with a live preview in any time zone, plus a reference for every format character.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.GuideAllowed memory size exhaustedWhat PHP's memory_limit fatal error means, how to tell a real leak from a big job, and fixes for the usual causes: loading whole tables, unbounded arrays, Composer and recursion.GuideComposer dependency conflictsA step-by-step way to read Composer's conflict output, find the package that is blocking you, and fix it without --ignore-platform-reqs or deleting the lock file.Guidecomposer install vs updatecomposer install reproduces composer.lock; composer update rewrites it. Here is what each command does, when to use which, and a safe production deploy routine.GuideComposer uses the wrong PHP versionComposer says "your php version (8.1.x) does not satisfy that requirement" when your server runs 8.3? The cause is usually the CLI binary, config.platform.php, or platform_check.php.GuideEloquent N+1 queriesHow to spot N+1 queries in Laravel, fix them with eager loading, withCount() and constrained loads, and make Laravel throw an exception the next time one slips in.GuideHeaders already sentThe warning names the file and line that produced output. Here is how to read it, the five usual culprits (BOM, whitespace, echo, warnings, closing tags) and fixes that do not just hide it.GuideWriting a talk proposalWhat reviewers look for in a call-for-papers submission: a specific title, an abstract for attendees, notes for the committee, and a talk-sized idea. With a worked example and a checklist.GuideLaravel queue jobs not runningJobs dispatched but never processed, stuck in the jobs table, or running old code? Work through the connection, the queue name, the worker, failed jobs and deploy restarts.PHP versionsWhat's new in PHP 8.4PHP 8.4 (released 21 November 2024) brought property hooks, public private(set) visibility, new without parentheses, lazy objects, an HTML5 DOM parser and array_find(). Plus the deprecations that matter.PHP versionsWhat's new in PHP 8.5PHP 8.5 (released 20 November 2025) added the |> pipe operator, a standards-compliant URI extension, clone() with property overrides, #[\NoDiscard] and array_first()/array_last().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.GuidePHP array to JSONWhy json_encode() sometimes gives you an object instead of a list, how to keep floats and slashes intact, and how to catch the silent false that malformed UTF-8 returns.GuideDuplicate webhooks in PHPWebhook providers retry, so the same event can arrive twice. Verify the signature, record the event ID with a unique key, answer fast and process in a queue: a pattern that works in plain PHP, Laravel and Symfony.GuidePHPStan baseline for legacy codeGenerate a PHPStan baseline, stop new errors from getting in, then raise the level step by step. A tested routine for old PHP codebases.GuidePSR-4 autoloadingHow PSR-4 maps namespaces to folders, how to configure it in composer.json, and why "Class not found" happens: case, typos, a stale autoloader or a namespace that does not match the path.GuideSerialized data broken after search-replaceChanging a domain name with SQL REPLACE() or sed corrupts PHP serialized strings because their byte lengths no longer match. Here is how to spot it and repair it safely.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 versionsSupported PHP versionsRelease, active support and end-of-life dates for every PHP version.ArchiveSunshinePHP talk archive 2013–2020Talk titles and speakers from eight years of the Miami PHP conference.ArchiveSpeaker indexEveryone who spoke at SunshinePHP, A to Z.