PHP 8.3 Hosting Available Now!

  • Thursday, 30th November, 2023
  • 00:00am

It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.

New Features in PHP 8.3

  • Typed Class Constants
  • Added json_validate function
  • Dynamic class constant and Enum member fetch support
  • gc_status() returns additional GC information
  • Random extension: New \Random\Randomizer::getBytesFromString method
  • Random extension: New \Random\Randomizer::getFloat() and nextFloat() methods
  • Fallback value support for PHP INI Environment Variable syntax
  • PHP CLI Lint (php -l) supports linting multiple files at once
  • class_alias() supports aliasing built-in PHP classes
  • New stream_context_set_options function

Syntax/Functionality Changes in PHP 8.3

  • unserialize(): Upgrade E_NOTICE errors to E_WARNING
  • highlight_file and highlight_string output HTML changes
  • Granular DateTime Exceptions
  • Class constant type declarations in some PHP extension classes
  • Built-in CLI Server $_SERVER['SERVER_SOFTWARE'] value changed for RFC3875 compliance

Deprecations in PHP 8.3

  • get_class() and get_parent_class() function calls without arguments deprecated
« Back