PHP 8 05
Read-Only Classes
Classes can be made read only. This is done by adding the keyword "readonly" before "class" and the name of the class before the opening curly brace.
Constants in Traits
Constants can be added inside of traits. The constant can be accessed through a class, but not through the trait itself.
MySQLI Execute Query Method and Function
The mysqli::execute_query method and mysqli_execute_query function prepares the query, binds the parameters, and executes the query.
Summary
Three new features in PHP 8.2 are read-only classes, constants inside of traits, and the mysqli_execute_query function/mysqli::execute_query method.