PHP 8.5 vs 8.6

Support windows, end-of-life dates and latest versions side by side.

Which should you run?

Pick PHP 8.6 for new installs. It's supported until Dec 31, 2030, 1 year longer than 8.5, which ends Dec 31, 2029.

PHP 8.5 PHP 8.6
ReleasedNov 20, 2025Nov 19, 2026
StatusActive supportActive support
Active support untilDec 31, 2027Dec 31, 2028
End of lifeDec 31, 2029
in 3 years
Dec 31, 2030
in 4 years
Total support4 years, 1 month4 years, 1 month
Latest version8.5.13
Nov 19, 2026
8.6.0
Nov 19, 2026
LTSNoNo

How to upgrade from PHP 8.5 to 8.6

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

Should I use PHP 8.5 or 8.6?
Pick PHP 8.6 for new installs. It's supported until Dec 31, 2030, 1 year longer than 8.5, which ends Dec 31, 2029.
How long are PHP 8.5 and 8.6 supported?
PHP 8.5: supported until Dec 31, 2029. PHP 8.6: supported until Dec 31, 2030.
What are the latest PHP 8.5 and 8.6 versions?
PHP 8.5 is at 8.5.13 (Nov 19, 2026), and PHP 8.6 is at 8.6.0 (Nov 19, 2026).

More PHP comparisons

Official release policy · Checked 6 hours ago