# PHP latest version: current 8.5, 8.4, 8.3 and 8.2 releases and end-of-life dates

Source: https://srvscripts.com/guides/php-latest-version/
Updated: 2026-11-02
Publisher: srvScripts (https://srvscripts.com/)

PHP maintains four branches at once, and the branch matters more than the newest number: a site on PHP 8.2 is one patch release behind on a branch that stops receiving security fixes at the end of 2026, while PHP 8.5 is the newest branch with three years ahead of it. This page shows the latest release on every supported branch from our tracker and what each end-of-life date means for a hosting server.

**Short answer:** The newest PHP branch is 8.5 and its latest release is **8.5.12**; the latest on 8.4 is **8.4.27**. PHP 8.2 reaches end of life on 31 December 2026 and PHP 8.1 is already out of support. For new sites use 8.4 unless the application has certified 8.5; move 8.1 and 8.2 sites now. (Reviewed October 2026.)

In short: the live table on this page is refreshed twice a day; the notes below explain what the numbers mean.

## Current versions (live)

The table below comes from endoflife.date, refreshed twice a day. Patch releases on all active branches normally land together on a Thursday every four weeks, and coordinated security releases (such as the 21 October 2026 fix for CVE-2026-109618 and CVE-2026-109619) land on every supported branch on the same day.

**PHP — current versions**

| Release line | Latest | Released | Support ends |
| --- | --- | --- | --- |
| 8.6 | 8.6.0 | 2026-11-19 | 2030-12-31 |
| 8.5 | 8.5.12 | 2026-10-21 | 2029-12-31 |
| 8.4 | 8.4.27 | 2026-10-21 | 2028-12-31 |
| 8.3 | 8.3.36 | 2026-10-21 | 2027-12-31 |

Last change in the tracker: 20 Nov 2026, 11:17 UTC · [All tracked products](https://srvscripts.com/latest-software-versions/) · [Vendor release notes](https://endoflife.date/php)

## How PHP branches and support work

Each PHP minor branch (8.3, 8.4, 8.5…) is released in November and supported for four years: **two years of active support** with bug fixes, then **two years of security fixes only**. The “Support ends” column above is the end of security support, after which the only patches come from vendors (CloudLinux ELS, TuxCare, Ubuntu Pro) or the cPanel/DirectAdmin build systems while they still ship the branch.

Hosting control panels ship their own builds a few days after php.net: cPanel through EasyApache 4 (`ea-php84` and so on), DirectAdmin through CustomBuild (`php1_release=8.4`), CloudLinux through PHP Selector (`alt-php`). The patch number on the server therefore lags php.net by days, not weeks; a lag of months means updates are stuck.

Branch choice is an application question. WordPress, Laravel and most PHP frameworks support 8.4 fully; 8.5 support arrived through 2026 and some commercial plugins still lag. 8.2 and 8.3 remain fine for existing sites until their security-only phase ends, but do not create new sites on them.

## Check which version you run

A server usually has several PHP versions; check the CLI default and the panel builds separately:

```
php -v                                             # CLI default
# cPanel / EasyApache 4
whmapi1 php_get_installed_versions
ls /opt/cpanel/ | grep ea-php
/opt/cpanel/ea-php84/root/usr/bin/php -v
# DirectAdmin / CustomBuild
/usr/local/php84/bin/php -v
grep -E "^php[1-4]_release" /usr/local/directadmin/custombuild/options.conf
# CloudLinux PHP Selector
selectorctl --list-alternatives
# which version a site actually runs (any panel)
curl -sI https://example.com/ | grep -i x-powered-by   # only if not hidden
```

## Update safely

Updating within a branch (8.4.26 → 8.4.27) is a package update and is safe; moving a site to a newer branch is an application change and needs a test. The panel-specific steps:

- [Update PHP on cPanel, DirectAdmin and CloudLinux](https://srvscripts.com/guides/update-php-cpanel-directadmin-cloudlinux/) — the security-update checklist, including how to recycle LiteSpeed PHP workers so the new build is actually used.

- [EasyApache 4: switch PHP 8.2 to 8.5](https://srvscripts.com/guides/easyapache-4-php-versions-8-2-8-5/) and [MultiPHP Manager bulk changes](https://srvscripts.com/guides/multiphp-manager-bulk-php-version/) on cPanel.

- [CustomBuild PHP versions and extensions](https://srvscripts.com/guides/custombuild-php-versions-extensions/) on DirectAdmin.

- [PHP still showing the old version after an update](https://srvscripts.com/guides/php-still-showing-old-version-after-update/) — the LiteSpeed/lsphp worker issue.

- [Retire PHP 8.1 sites safely](https://srvscripts.com/guides/retire-php-8-1-cpanel-tuxcare-els/) — the audit, and what ELS does and does not cover. The [cPanel PHP version audit script](https://srvscripts.com/scripts/cpanel-php-version-audit/) lists every site on an end-of-life branch.

For a public site you do not control, the [WordPress security and PHP check](https://srvscripts.com/tools/wordpress-security-check/) reports the PHP branch when the server exposes it.

## PHP versions at a glance

PHP latest version: what this guide covers.

**Official documentation:** [PHP supported versions](https://www.php.net/supported-versions.php), [PHP release history](https://www.php.net/releases/), [endoflife.date: PHP](https://endoflife.date/php).

**Related guides:** [Update PHP: cPanel, DirectAdmin and CloudLinux security guide](https://srvscripts.com/guides/update-php-cpanel-directadmin-cloudlinux/) · [Retire PHP 8.1 cPanel sites safely: audit and ELS](https://srvscripts.com/guides/retire-php-8-1-cpanel-tuxcare-els/) · [PHP cheat sheet: 8.3 and 8.4 syntax and functions](https://srvscripts.com/guides/php-cheat-sheet/).

## Frequently asked questions

### What is the latest PHP version?

PHP 8.5 is the newest branch; its current patch release, and the current release on 8.4, 8.3 and 8.2, are in the table at the top of this page, refreshed twice a day from endoflife.date.

### When does PHP 8.2 reach end of life?

31 December 2026. After that date php.net publishes no security fixes for 8.2; cPanel and DirectAdmin keep shipping the branch for a while, and CloudLinux ELS or TuxCare sell extended patches. PHP 8.1 reached end of life on 31 December 2025.

### Which PHP version should I use for WordPress in 2026?

PHP 8.4 for new sites: full WordPress and plugin support, active support until the end of 2026 and security fixes until the end of 2028. PHP 8.5 works with current WordPress but some commercial plugins still lag; test before switching a production site.
