PHP 8.1

End of life

Is PHP 8.1 still supported?

No

PHP 8.1 reached end of life on Dec 31, 2025 (10 months ago). It no longer gets updates, including security fixes. Upgrade to PHP 8.5 (latest 8.5.12), supported until Dec 31, 2029.

Released
Nov 25, 2021
Active support ended
Nov 25, 2023
2 years ago
End of life
Dec 31, 2025
10 months ago
Latest version
8.1.34
Dec 18, 2025

Dates checked against php.net supported versions on Oct 29, 2026.

Not sure? Run php --version

Upgrade path

The recommended upgrade is PHP 8.5, currently at 8.5.12 and supported until Dec 31, 2029.

How to upgrade from PHP 8.1 to PHP 8.5

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

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

Add any other php8.5-* 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.5 -y
sudo dnf upgrade 'php*'

Docker

docker pull php:8.5-fpm

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

Quick answers

Is PHP 8.1 still supported?
No. PHP 8.1 reached end of life on Dec 31, 2025 (10 months ago). It no longer gets updates, including security fixes. Upgrade to PHP 8.5 (latest 8.5.12), supported until Dec 31, 2029.
When is PHP 8.1 end of life?
PHP 8.1 reached end of life on Dec 31, 2025. It gets no more updates, including security fixes.
What is the latest version of PHP 8.1?
The latest PHP 8.1 release is 8.1.34, released on Dec 18, 2025.
When was PHP 8.1 released?
PHP 8.1 was released on Nov 25, 2021.
What should I upgrade PHP 8.1 to?
The recommended upgrade is PHP 8.5, currently at 8.5.12 and supported until Dec 31, 2029.
How do I check which PHP version I have?
Run php --version, then paste the result into the “Am I up to date?” box on this page.

Other PHP branches

All 23 →
  • 8.5 Active support
  • 8.4 Active support
  • 8.3 Security fixes only
  • 8.2 Security fixes only
  • 8.1 End of life
  • 8.0 End of life
  • 7.4 End of life
  • 7.3 End of life
  • 7.2 End of life
  • 7.1 End of life
  • 7.0 End of life
  • 5.6 End of life
  • 5.5 End of life

← PHP 8.0 PHP 8.2 →

PHP 8.1 release dates

RSS

Release dates for 35 PHP 8.1 versions, newest first.

  1. 8.1.34
  2. 8.1.33
  3. 8.1.32
  4. 8.1.31
  5. 8.1.30
  6. 8.1.29
  7. 8.1.28
  8. 8.1.27
  9. 8.1.26
  10. 8.1.25
All 35 releases
  1. 8.1.24
  2. 8.1.23
  3. 8.1.22
  4. 8.1.21
  5. 8.1.20
  6. 8.1.19
  7. 8.1.18
  8. 8.1.17
  9. 8.1.16
  10. 8.1.15
  11. 8.1.14
  12. 8.1.13
  13. 8.1.12
  14. 8.1.11
  15. 8.1.10
  16. 8.1.9
  17. 8.1.8
  18. 8.1.7
  19. 8.1.6
  20. 8.1.5
  21. 8.1.4
  22. 8.1.3
  23. 8.1.2
  24. 8.1.1
  25. 8.1.0

Keep track

PHP 8.1 latest version badge

People who run PHP 8.1 also check

Official release policy · Checked 3 hours ago · Dates checked against the vendor on Oct 29, 2026