PHP 8.2 Released With Readonly Classes, Random Extension

Written by Michael Larabel in Programming on 8 December 2022 at 07:09 AM EST. 23 Comments
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
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week