PHP 8.3 Release
12:46, 28.11.2023
Recently, a new major release of PHP 8.3 took place. The version includes a range of updates and a series of new features. However, this version has also a worse compatibility with previous releases due to new features.
The new features of this new version include:
- Deep cloning of read-only properties.
- The possibility of using constants with type indication in classes, types, and enumerations.
- ‘"#[Override]’ attribute support.
- Processing of negative values as array index has been changed.
- Creating anonymous classes in read-only mode.
- getBytesFromString, getFloat, and nextFloat methods added to the Randomizer class.
- Extracting constants using dynamic class syntax.
- Generating special exceptions options – DateMalformedIntervalStringException, DateInvalidOperationException, DateRangeError.
- Improved handling of errors occurring while parsing serialized data in the unserialize() function.
- Changes to the range() function.
- Changed behavior of types with static properties.
- Settings to protect against stack overflow.
- New POSIX functions posix_sysconf(), posix_pathconf(), posix_fpathconf() and posix_eaccess().
- mb_str_pad function.
- Expanded capabilities of array_sum(), array_product(), posix_getrlimit(), gc_status(), class_alias(), mysqli_poll(), array_pad() and proc_get_status() functions.
- The possibility to pass negative $widths value to mb_strimwidth() is now obsolete.