PHP latest version & end-of-life dates

Latest version, released Nov 19, 2026 (7 days ago) Active support

The latest PHP version is 8.6.0, released Nov 19, 2026. PHP 8.6 gets full support until Dec 31, 2028, then security fixes until Dec 31, 2030. PHP 8.2 reaches end of life on Dec 31, 2026.

Supported versions

BranchReleasedLatestStatusEnd of life
8.6 Nov 19, 2026 8.6.0
Nov 19, 2026
Active support until Dec 31, 2028 Dec 31, 2030
in 4 years
8.5 Nov 20, 2025 8.5.13
Nov 19, 2026
Active support until Dec 31, 2027 Dec 31, 2029
in 3 years
8.4 Nov 21, 2024 8.4.28
Nov 19, 2026
Active support until Dec 31, 2026 Dec 31, 2028
in 2 years
8.3 Nov 23, 2023 8.3.37
Nov 19, 2026
Security fixes only until Dec 31, 2027 Dec 31, 2027
in 1 year
8.2 Dec 8, 2022 8.2.36
Nov 19, 2026
Security fixes only until Dec 31, 2026 Dec 31, 2026
in 1 month

Active support: bug and security fixes Security fixes only: patches for vulnerabilities, nothing else End of life: no fixes at all · more

19 end-of-life versions
BranchReleasedFinal versionEnd of life
8.1 Nov 25, 2021 8.1.34 Dec 31, 2025
8.0 Nov 26, 2020 8.0.30 Nov 26, 2023
7.4 Nov 28, 2019 7.4.33 Nov 28, 2022
7.3 Dec 6, 2018 7.3.33 Dec 6, 2021
7.2 Nov 30, 2017 7.2.34 Nov 30, 2020
7.1 Dec 1, 2016 7.1.33 Dec 1, 2019
7.0 Dec 3, 2015 7.0.33 Jan 10, 2019
5.6 Aug 28, 2014 5.6.40 Dec 31, 2018
5.5 Jun 20, 2013 5.5.38 Jul 21, 2016
5.4 Mar 1, 2012 5.4.45 Sep 14, 2015
5.3 Jun 30, 2009 5.3.29 Aug 14, 2014
5.2 Nov 2, 2006 5.2.17 Jan 6, 2011
5.1 Nov 24, 2005 5.1.6 Aug 24, 2006
4.4 Jul 11, 2005 4.4.9 Aug 7, 2008
5.0 Jul 13, 2004 5.0.5 Sep 5, 2005
4.3 Dec 27, 2002 4.3.11 Mar 31, 2005
4.2 Apr 22, 2002 4.2.3 Sep 6, 2002
4.1 Dec 10, 2001 4.1.2 Mar 12, 2002
4.0 May 22, 2000 4.0.6 Jun 23, 2001

Security alert · Oct 21, 2026

PHP2Shell: two critical remote code execution bugs, fixed October 21, 2026

Update PHP now. On October 21, 2026 the PHP project released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical bugs that can let an attacker run code on a web server: CVE-2026-109618 and CVE-2026-109619, nicknamed "PHP2Shell". Both are rated 9.2 (CVSS 4.0). Qualys reports exploitation attempts seen by Amazon and Cloudflare, and proof-of-concept code was circulating before the release.

BranchFixed inNotes
PHP 8.58.5.12Also set fatal_error_backtraces=0 if you can't update yet
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35Security support ends December 31, 2026
PHP 8.1 and olderNo upstream releaseEnd of life: upgrade, or use a distro or extended-support package

After updating, restart PHP-FPM or Apache so the running workers load the new version. Checking php -v on the command line can show a different PHP than the one serving your site.

Who's affected, what to do if you can't patch yet, and sources

Who's affected

Any PHP that serves web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. Apache with mod_php is the most exposed: an unauthenticated request can trigger the bug before your application's code even runs, and full remote code execution was shown with default settings. PHP-FPM is affected too, through application code paths. Researchers also showed that worker memory can leak, and that memory can hold passwords, session tokens and API keys.

Don't forget PHP you didn't install yourself: hosting control panels, containers and appliances that bundle it. On shared hosting, check that your host has updated, or switch the site to a patched version in the panel.

What the two bugs are

  • CVE-2026-109618, out-of-memory corruption. If a request hits memory_limit at the wrong moment, PHP can leave internal request data half set up and later treat it as valid, which corrupts memory. (GHSA-w8hw-w9fx-j79w ↗)
  • CVE-2026-109619, stale global state. A fatal error at the wrong point can leave internal state pointing at memory from an earlier request. The next request on the same worker can use that freed memory. The confirmed paths go through session upload progress and fatal error backtraces. (GHSA-6wmf-4rv5-p3rp ↗)

PHP 8.1, 8.0 and 7.4

The PHP project no longer supports these branches, so there's no official release. The security team did publish minimal source patches for 7.4, 8.0 and 8.1 in php-src, and Linux distributions and extended-support vendors are shipping their own builds. Distribution packages often keep an older version number with the fix backported, so check your vendor's advisory instead of the number. The real fix is moving to a supported branch; if you're on 8.2, its end of life is close too, so see the PHP 8.2 upgrade checklist.

Can't update today?

These lower the risk but don't make a server safe. Set them in php.ini, the FPM pool or the Apache config (not with ini_set() or .user.ini), then restart every worker:

  • session.upload_progress.enabled=0
  • On PHP 8.5: fatal_error_backtraces=0
  • Keep post_max_size small (8M, or 32M if you need uploads) with upload_max_filesize below it, and limit request size, field count and multipart parts at the web server or proxy.
  • PHP's advisory also suggests setting memory_limit=-1 with php_admin_value so applications can't change it. That removes PHP's memory cap, so pair it with a container or cgroup memory limit. Don't use RLIMIT_AS or RLIMIT_DATA: they can trigger the bug.

If none of that is possible quickly, the UK's NCSC suggests taking the site offline until it's patched, and checking servers you couldn't patch for signs of compromise.

Also in the September release

The September 24 releases (8.5.11, 8.4.26, 8.3.35, 8.2.34) fixed about ten other CVEs, including a PHP-FPM bypass of IPv6 listen.allowed_clients, TLS hostname checks in OpenSSL that fell back to the certificate's CN, and Phar and SOAP overflows. Updating to the October release covers those too.

Sources

By · updated Oct 22, 2026

PHP currently has 5 supported releases and 19 that have reached end of life. New releases come out about every 12 months, and each is supported for about 3 years, 10 months.

Checklist: PHP 8.2 → 8.4 upgrade checklist →

Not sure? Run php --version · commands for other tools

Brandon's take

I keep my scripts current, so a new PHP release is routine maintenance, not a fire drill. My hosting panel changes versions from a dropdown in seconds; the real work is reviewing the error logs before I switch. I learned that when an upgrade left a site on a blank white screen. Rolling back to the previous version restored it immediately, and log review has been part of every change since.

, IT administrator and web developer ·

Next PHP release

PHP 8.7 is expected around November 2027.

This is an estimate, not an official date. The last 7 PHP versions came out about every year, most recently PHP 8.6 on Nov 19, 2026. This page updates when the release is announced.

Support timeline

What the colors mean
8.6 8.5 8.4 8.3 8.2 8.1
Active support Security fixes only Today + 18 older branches in the table

How to upgrade PHP

Ubuntu / Debian (Ondřej Surý's packages)

sudo apt update
sudo apt install --only-upgrade php8.6-cli php8.6-fpm

Add any other php8.6-* extensions you use. Moving to a new branch? Install the new packages alongside the old ones, switch your web server or PHP-FPM pool over, then remove the old ones.

RHEL / Rocky / AlmaLinux (Remi)

sudo dnf module reset php -y
sudo dnf module enable php:remi-8.6 -y
sudo dnf upgrade 'php*'

Docker

docker pull php:8.6-fpm

Official upgrade guide ↗ Back up first, and test on a non-production machine when you move to a new branch.

Quick answers

What is the latest version of PHP?
The latest version of PHP is 8.6.0, released on November 19, 2026.
Which versions of PHP are still supported?
PHP 8.6, 8.5, 8.4, 8.3 and 8.2 are currently supported. 8.3 and 8.2 only get security fixes.
When is the next PHP end-of-life date?
PHP 8.2 reaches end of life on December 31, 2026. After that it gets no more updates, including security fixes.
When is the next PHP release?
PHP 8.7 is expected around November 2027. That's an estimate from past release dates, not an official date. Recent versions have come out about every year.
How do I check which version of PHP I have?
Run php --version, then paste the result into the “Am I up to date?” box on this page.

Release history

RSS
  1. 8.6.0
  2. 8.5.13
  3. 8.4.28
  4. 8.3.37
  5. 8.2.36
  6. 8.5.12
  7. 8.4.27
  8. 8.3.36
  9. 8.2.35
  10. 8.5.11
  11. 8.4.26
  12. 8.3.35

Every version's release date is on its branch page.

Use this data

PHP latest version badge

Download every branch as CSV (release, support and end-of-life dates for Excel or Sheets)

People who run PHP also check

Package identifiers (for SBOM and vulnerability scanners)

Official release policy · Checked 4 hours ago