The moment of writing this article the PHP version 8 is not released yet, but all the discussions about new features and performance are amazing. well some of you might heard about it and some may even used it, but since it was poorly designed and almost not supported OOP (I’m not talking about performance yet), guys at PHP realized to rewrite the whole thing instead of fixing and updating the existing code base.
Instead guys realized to rewrite it again and build incredibly new and powerful version of PHP and version 7 was born.
The current version of PHP is 7.4 that has more new features and less deprecated functionalities.
With PHP 8, the code above would output the following result: There are much more features in version 8, such as The nullsafe operator, Named arguments, Attributes and much much more, and most of all PHP 8 is a beast in its performance...