PHP 8.1 Changelog

← Back to Home

Last Updated: September 4, 2025

PHP 8.1 introduced significant improvements and new features that enhance code safety, performance, and maintainability.

PHP 8.1 – November 2023

Added: Native enum types for better type safety in constants.
Added: readonly properties to enforce immutability on class fields.
Added: External class references in traits using class keywords for flexibility.
Improved: Union types with more flexible syntax for complex type declarations.
Deprecated: Legacy __autoload() function in favor of PSR-4 autolooding.
Performance: Faster OPcache preloading and reduced memory overhead for arrays.

Previous Major Versions

Version Release Date Notable Features
PHP 8.2 November 2024 Constructor property promotion for traits, static return type Details →

Need Help with PHP Upgrades?

Our community maintains detailed upgrade guides for every major PHP version. Check back regularly for the latest updates and security patches.

Visit Resource Library