PHP 8.3 vs 8.4
Which should you run?
Pick PHP 8.4 for new installs. It's supported until Dec 31, 2028, 1 year longer than 8.3, which ends Dec 31, 2027. 8.3 already gets security fixes only.
8.3
8.4
20232028
Supported
Security fixes only
Today
| PHP 8.3 | PHP 8.4 | |
|---|---|---|
| Released | Nov 23, 2023 | Nov 21, 2024 |
| Status | Security fixes only | Active support |
| Active support until | Dec 31, 2025 | Dec 31, 2026 |
| End of life | Dec 31, 2027 in 1 year | Dec 31, 2028 in 2 years |
| Total support | 4 years, 1 month | 4 years, 1 month |
| Latest version | 8.3.36 Oct 21, 2026 | 8.4.27 Oct 21, 2026 |
| LTS | No | No |
How to upgrade from PHP 8.3 to 8.4
Ubuntu / Debian (Ondřej Surý's packages)
sudo apt update
sudo apt install --only-upgrade php8.4-cli php8.4-fpm Add any other php8.4-* 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.4 -y
sudo dnf upgrade 'php*' Docker
docker pull php:8.4-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.3 or 8.4?
- Pick PHP 8.4 for new installs. It's supported until Dec 31, 2028, 1 year longer than 8.3, which ends Dec 31, 2027. 8.3 already gets security fixes only.
- How long are PHP 8.3 and 8.4 supported?
- PHP 8.3: supported until Dec 31, 2027 (security fixes only). PHP 8.4: supported until Dec 31, 2028.
- What are the latest PHP 8.3 and 8.4 versions?
- PHP 8.3 is at 8.3.36 (Oct 21, 2026), and PHP 8.4 is at 8.4.27 (Oct 21, 2026).
More PHP comparisons
Official release policy · Checked 4 hours ago