PHP 8.2 now available: what’s new in this update?
On December, 2022, a major release of the PHP language, PHP 8.2, has been released. This update is available on Gandi’s hosting products.
Let’s review PHP 8.2 new features that caught our attention.
What’s new in PHP 8.2
PHP 8.2 release provides performance improvements and many new features such as:
- readonly classes
trueas stand-alone types
- a new “Random” extension providing a new object-oriented API to generate random number
- disjunctive Normal Form (DNF) Types allowing to combine union and intersection types
For more information on how to migrate code to PHP 8.2, you can refer to the official documentation (and for those preferring a french version, we contributed to the french translation of these release notes).
And to actually host code with a PHP 8.2 interpreter, you can use our Web Hosting offer.Tagged in Simple Hosting