What's so awesome in PHP 8.2?

PHP 8.2 is a minor release in the PHP 8 series and was released on 2021-12-06. Some of the notable features and improvements in PHP 8.2 include:

  1. Nullsafe operator: This operator allows you to chain method calls and access properties without having to check for null values at each step. This can make your code more concise and easier to read.

  2. Mixed type hint: The mixed type hint can be used to indicate that a function parameter or return value can be of any type. This can be useful when a function can accept a variety of different types, or when the type is not known at the time the function is written.

  3. Improved JIT (Just-In-Time) compilation: PHP 8.2 includes improvements to the JIT compilation feature introduced in PHP 8.0, which can improve the performance of certain types of code.

  4. New string functions: PHP 8.2 introduces several new functions for working with strings, including str_contains(), str_starts_with(), and str_ends_with().

  5. Other improvements: PHP 8.2 also includes various other improvements and optimizations, such as support for preloading PHP files, improved type coercion, and support for the Xdebug profiler.

Overall, PHP 8.2 brings a number of useful new features and improvements that can make your code more concise and efficient, as well as improving the performance of your applications.

For more details on PHP 8,2, please click on the link below

 What’s new in PHP 8.2. PHP 8.2 is released on December 8… | by Mokhtar Tlili | Dec, 2022 | Medium




Popular posts from this blog


A huge list of PHP open-source libraries to build your awesome PHP applications

What are the major differences between RISC-V and traditional RISC CPUs?