Blackfire now supports PHP 8.3

By Thomas di Luccio, on Dec 14, 2023

We’re thrilled to announce that Blackfire, your go-to continuous observability solution, now fully supports PHP 8.3. This latest version of PHP brings enhancements and new features, promising to elevate your development experience. We encourage all users to upgrade their Blackfire Probe to the latest version to leverage these advancements.

What’s new in PHP 8.3?

PHP 8.3 is a significant leap forward. Here are some key features:

  1. Typed class constants: PHP 8.3 introduces explicit typing for class constants, ensuring better code reliability and preventing unintended types.
  2. Dynamic class constant fetch: This feature allows more dynamic syntax for fetching constants, providing flexibility and cleaner code.
  3. New #[\Override] attribute: This addition ensures that methods with the same name exist in a parent class or implemented interface, reducing errors in overriding parent methods.
  4. Deep-cloning of readonly properties: PHP 8.3 allows modifying readonly properties once within the __clone method, enabling deep-cloning.
  5. New json_validate() function: This long-awaited function efficiently checks if a string is valid JSON, using less memory than json_decode().
  6. Enhanced randomizer class: The Randomizer class now includes methods like getBytesFromString() and getFloat(), offering more options for generating random data.
  7. Improved CLI linter: PHP 8.3’s CLI linter now supports multiple files, streamlining the linting process.

We’re committed to keeping you at the forefront of technology. Make sure to get the latest version of the Blackfire probe and try PHP 8.3.

To better observability and beyond!

Thomas di Luccio

Thomas is a Developer Relations Engineer at Platform.sh for Blackfire.io. He likes nothing more than understanding the users' needs and helping them find practical and empowering solutions. He’ll support you as a day-to-day user.