PHP 8.3 will be released on https://wiki.php.net/todo/php83; it has improvements to readonly classes, the new json_validate() function, additions to the recently added Randomizer class, stack overflow detection, and more. In this post, we'll go through all features, performance improvements, changes and deprecations one by one.

readonly class Post { public function __construct( public DateTime $createdAt, ) {} public function __clone() { $this->createdAt = new DateTime(); }}

That's fixed in PHP 8.3: $class = new readonly class { public function __construct( public string $foo = 'bar', ) {}}; #the-new-json_validate()-function-rfc The new json_validate() function https://wiki.php.net/rfc/json_validate

In general, these additions won't break any code, since these newly added exceptions and errors subclass the generic Exception and Error classes.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners