What's new in PHP 8.1 - behind the scenes
Internal property reflection
-
Almost all internal properties became declared
-
A few properties became readonly
-
Almost all properties became typed
Documentation Improvements
- Stubs are being synchronized with the documentation
- Formatting changes
Resource to Object Conversion
There are only 6 extensions left which still expose resources
-
fileinfo(fixed in PHP 8.1) -
FTP(fixed in PHP 8.1) -
GD(fixed in PHP 8.1) -
IMAP(fixed in PHP 8.1) -
LDAP(fixed in PHP 8.1) -
pgsql(fixed in PHP 8.1) -
pspell(fixed in PHP 8.1)
-
com
-
DBA
-
OCI8
-
ODBC
-
SOAP (partly fixed in PHP 8.1)
-
standard
mbstring refactor
OPCache improvements
- JIT for ARM64 architecture
- Inheritance cache
- Fast class cache
- Generated and extended return type information for inference
- Tons of type inference fixes
Performance improvements
What's new in PHP 8.1 - Behind the Scenes
By Máté Kocsis
What's new in PHP 8.1 - Behind the Scenes
- 376