PHP 8.2 Released With Readonly Classes, Random Extension

PHP 8.2 is out today as the annual major feature release to this widely-used scripting language primarily for web purposes.

PHP 8.2 adds support for defining constants in traits, the "Random" extension is introduced, read-only classes, Disjunctive Normal Form (DNF) Types, updated MIME type table for the built-in web server, reduced memory footprint of strings returned by various functions, initial support for JIT performance profiling generation for macOS Instrument, enabling arc4random_buf for Linux with Glibc 2.36+ for random bytes, initial support for cross-building on Windows for ARM64, allocating the JIT buffer Opcache close to the PHP .text segment to allow using direct IP-relative calls and jumps, new options for PHP Sockets, support for new Curl options, new ZipArchive methods, dynamic properties have been deprecated, and other PHP 8.2 performance improvements .


Downloads and more details on the PHP 8.2 changes via PHP.net .