PHP 8.3 was released today, the latest major annual update to the PHP programming language. PHP8.3 implements many new language features and other improvements for this widely used programming language. Benchmarking PHP8.3 over the past few days did not reveal any significant changes in performance compared to PHP8.2.
New features in PHP 8.3 include:
-Class constants can now be accessed dynamically using the newly added syntax.
- Implemented more appropriate date/time exceptions.
-Added json_validate() function for validating JSON.
-Implements the #[Override] attribute RFCti to check whether the method exists in the parent class or implemented interface.
- Updated Zip extension and added new set/get archive flag methods.
-PHPPOSIX support adds posix_sysconf, posix_pathconf, posix_fpathconf and posix_eaccess functions.
- Tons of new PHPSockets options.
- New functionality for the randomization class.
- Added support for new cURL options and constants below cURL7.87.
- Added various new DOM methods for DOM nodes and elements.
- Support rounding of negative numbers in the number_format() function.
- Support zend_call_stack_get on OpenBSD platforms.
-Supports inting multiple files simultaneously using the php -l option.
-Support negative exponents in arrays
-Support anonymous read-only classes
- Support for typed class constants, classes, interfaces, traits and enumeration constants now support type declarations.
- Closures created from magic mode can now accept named parameters.
-PHPCLI now supports filtering of multiple files.
- Implemented STREAM_NOTIFY_COMPLETED notification for PHP streams.
- Many bug fixes and other improvements.
For downloads and more details about today's release of PHP 8.3, visit PHP.net:
https://www.php.net/archive/2023.php#2023-11-23-2