November 27, 2023

What's new in PHP 8.3 and the related benchmarks.

PHP 8.3: A New Frontier for Programming Language


PHP, the widely used programming language around the world, last November 23rd recently announced the release of PHP 8.3, the latest major annual update. This new version brings with it a series of new features and improvements, keeping PHP up to date with the current needs of web development.

A new version of PHP is released approximately every 12 months, with the latest release being 8.2 in December 2022. Each release has two years of active support and one year of security support, so 8.0 – released on November 26 2020 – will exit security support in a few days, although operating system vendors may have their own support policies that include PHP. It is common for versions of PHP that have been out of support for a long time to remain in use, and a report earlier this year stated that the majority of implementations are in this state.

Main new features of PHP 8.3

  1. Dynamic Access to Class Constants: A new syntax has been introduced that allows dynamic access to class constants, simplifying interaction with them.
  2. Improved Management of Dates and Times: More appropriate exceptions have been implemented for handling dates and times, making the processing of this information more intuitive and less error-prone.
  3. json_validate() function: This added feature allows validation of JSON strings, a crucial feature in the era of data interoperability.
  4. Attribute #[\Override]: Implemented to test for the existence of a method in a parent class or implemented interface, making it easier to handle inheritance and polymorphism.
  5. Updated Zip Extension: New methods for setting and getting archive flags have been added, improving manipulation of compressed files.
  6. Extended POSIX Support: The addition of features like posix_sysconf and posix_eaccess enriches PHP support for POSIX standards.
  7. New Options for PHP Sockets: Adding these options expands the network communication possibilities in PHP.
  8. Randomizer Class: Introducing new features for the Randomizer class, enhancing the generation of random numbers.
  9. Updated cURL support: Support for new cURL options and constants up to version 7.87, essential for HTTP requests.
  10. New DOM Methods: Adding methods for DOM nodes and elements facilitates manipulation of the Document Object Model.
  11. Rounding in number_format(): You can now round to negative digits, allowing greater flexibility in formatting numbers.
  12. Support for zend_call_stack_get on OpenBSD: Extends PHP compatibility with different operating systems.
  13. Linting of Multiple Files: The ability to lin multiple files at once with the php -l option.
  14. Negative Indexes in Arrays: This support offers new dynamics in array management.
  15. Anonymous Read Only Classes: Introduces greater security and encapsulation into your code.
  16. Typed Class Constants: You can now declare types for class, interface, trait, and enum constants.
  17. Closures from Magical Methods with Named Arguments: This feature makes closures more versatile and powerful.
  18. STREAM_NOTIFY_COMPLETED: A new notification for PHP streams, improving data stream management.
  19. Bug Fixes and Other Improvements: A series of bug fixes and various improvements that make PHP 8.3 a more stable and performant version.

Performance and Benchmarks PHP 8.3

From the research and benchmarks available, it can be seen that there are no significant differences in terms of performance between PHP 8.2 and PHP 8.4. This suggests that, as of version 8.1, PHP appears to have reached a plateau in terms of performance. This scenario implies that current performance could remain constant throughout Branch 8 and into the next few years, unless a radical revision of the language is undertaken. Such an overhaul could aim to overcome current limitations and push PHP's capabilities further, raising the performance bar.


Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.


Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.


Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV Hetzner Online GmbH owns the rights to Hetzner®; OVHcloud is a registered trademark of OVH Groupe SAS; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Facebook, Inc. owns the rights to Facebook®. This site is not affiliated, sponsored or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a trademark registered at European level by MANAGED SERVER SRL, Via Enzo Ferrari, 9, 62012 Civitanova Marche (MC), Italy.

Back to top