PHP 8.5 vs 8.6
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.
8.5
8.6
20252030
Supported
Security fixes only
Today
| PHP 8.5 | PHP 8.6 | |
|---|---|---|
| Released | Nov 20, 2025 | Nov 19, 2026 |
| Status | Active support | Active support |
| Active support until | Dec 31, 2027 | Dec 31, 2028 |
| End of life | Dec 31, 2029 in 3 years | Dec 31, 2030 in 4 years |
| Total support | 4 years, 1 month | 4 years, 1 month |
| Latest version | 8.5.13 Nov 19, 2026 | 8.6.0 Nov 19, 2026 |
| LTS | No | No |
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