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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners