PHP 8.2: What's New and Changed
New Features
readonly
Classestrue
type- Allow
null
andfalse
as standalone types - Sensitive Parameter value redaction support
- MySQLi: New
mysqli_execute_query
function andmysqli::execute_query
method - No-capture modifier (
/n
) support inpreg_*
functions - New
memory_reset_peak_usage
function - Curl:
CURLINFO_EFFECTIVE_METHOD
support incurl_getinfo
function AllowDynamicProperties
Attribute
Deprecations
- Dynamic Properties are deprecated
- Partially-supported callable are deprecated
- Mbstring: Base64, Uuencode, QPrint, and HTML Entity encodings are deprecated
utf8_encode
andutf8_decode
functions deprecated${var}
string interpolation deprecated