PHP elephant and laptop monitors

PHP 8.3 (Beta 3) Is Now Available for Testing on SiteGround Servers

We are excited to announce that PHP 8.3 (Beta 3) is now available for testing on all SiteGround servers. Yet, again thanks to our unique multiple-PHP server setup, we are able to provide the latest PHP versions safely to anyone who wants to test them, almost immediately upon their official beta release. This means we are once again among the first companies to offer PHP 8.3 (Beta 3) for testing on our hosting platform 🎉🎉🎉. 

Continue reading this blog post to discover more about the new features of the latest PHP version.

New Features

Let’s delve into some of the new features that PHP 8.3 Beta 3 brings to the table. This version may not be highlighted by sweeping changes or major upgrades, but it introduces a few key features that could significantly enhance the PHP development experience.

gc_status() Returns Additional GC Information

Long-running daemons and cron jobs have always been a weak part in PHP in general. However, with PHP 8.3, the gc_status() function now returns additional garbage collection (GC) information. This is a significant improvement for developers who need to manage memory usage in long-running scripts. More information about this feature can be found here.

class_alias() Supports Aliasing Built-in PHP Classes

Another exciting feature in PHP 8.3 is the ability to alias built-in PHP classes using the class_alias() function. This allows PHP developers to hook up into built-in classes and overwrite classes or declarations in them. This feature opens up a world of possibilities for extending and customizing the behavior of built-in PHP classes.

json_validate() Function

Another exciting addition in PHP 8.3 is the json_validate() function. This function validates if a string contains valid JSON, providing a more efficient alternative to userland implementations that use json_decode(). The json_decode() function generates a ZVAL (object/array/etc.) while parsing the string, using memory and processing that could be saved. The json_validate() function uses the same JSON parser that exists in the PHP core and is used by json_decode(), ensuring that what is valid in json_validate() is also valid in json_decode().

Changelog  with all language and library changes in PHP 8.3 could be find at https://wiki.php.net/rfc#php_83 

How to test PHP 8.3 (Beta 3) on SiteGround Servers

Now, with a one-button click in your SiteTools -> Devs section you’re able to replace the current PHP version used by your website with PHP 8.3 (Beta 3). It is important to emphasize on the fact that this is PHP 8.3 in its Beta 3 version. This means it is available for testing purposes mostly and as always we strongly advise you not to use it at your production site before the stable release date (November 23, 2023). If you want to test it with an existing site, set up a new site for testing, clone your production site into it, and play with that – our WordPress Staging tool is perfect for that purpose. When you are done, you can just delete it.

As you explore your new testing environment, check your log files after every test. Make sure nothing fails and see if any new warnings or errors pop up.

Wrap Up

PHP 8.3 Beta 3 may not be marked by major upgrades, but it introduces a set of key features that could significantly enhance the PHP development experience – improvements to readonly classes, the new gc_status(), class_alias() and json_validate() functions, additions to the recently added Randomizer class, stack overflow detection, and more. That is not it for sure but there is enough time to “play” with the new PHP 8.3 (Beta 3) version and explore all sidekicks it might bring on before the official release. 

Last but not least – remember, at SiteGround, we are committed to providing our clients with the latest and greatest in PHP technology well ahead of the others. Stay tuned for more updates and happy coding with PHP 8.3 (Beta 3)!

Access email sent!

Sign Up For
More Awesome Content!

Subscribe to receive our monthly newsletters with the latest helpful content and offers from SiteGround.

Thanks!

Please check your email to confirm your subscription.

author avatar

Daniel Kanchev

Director Product Development

Daniel is responsible for bringing new products to life at SiteGround. This involves handling all types of tasks and communication across multiple teams. Enthusiastic about technology, user experience, security and performance, you can never be bored hanging around him. Also an occasional conference speaker and travel addict.

Comments ( 4 )

author avatar

Dom

Nov 23, 2023

Hi there. 8.3.0 (stable) released :) > https://www.php.net/releases/8.3/en.php + https://www.php.net/archive/2023.php#2023-11-23-2 . Cheers :)

Reply
author avatar

Gabriela Andonova Siteground Team

Nov 28, 2023

Hey Dom! Thanks for the heads-up on the PHP 8.3.0 stable release! We're just as excited about it and are already in the process of updating our systems. We'll be sure to notify our users as soon as it's available for use on SiteGround's servers and Site Tools. In the meantime, feel free to use the PHP 8.3 (Beta 3) version in order to take advantage of all of the awesome new features!

Reply
author avatar

Generosus

Nov 27, 2023

PHP 8.3.0 (Stable) was officially releaed on November 23, 2023. How soon can we expect SiteGround to update its servers and Site Tools to allow its use? Currently, we're using PHP 8.3.0 (Beta) with no issues. Thank you.

Reply
author avatar

Gabriela Andonova Siteground Team

Nov 28, 2023

Thank you for reaching out and for your enthusiasm about the new PHP 8.3.0 stable release! Our team is currently working diligently to integrate the latest stable PHP version with our custom speed and security enhancements. We'll be sure to notify all our users as soon as the stable version is available for use on our servers and Site Tools. In the meantime, it's great to hear that you're already using PHP 8.3 (Beta 3) without any hiccups. Thanks for your patience as we roll out this update.

Reply

Start discussion

Related Posts