PHP 8 Infographic: What’s New vs PHP 7

PHP 8 is a major version change for the PHP language and offers many new exciting features as well as new types, attributes and functions. It also offers performance improvements over the earlier version of PHP by using Just In Time Compilation. In this article we are presenting a PHP 8 infographic that summarizes what’s new in PHP 8 and presents comparison between PHP 7 and PHP 8.

You can see these changes in detail on PHP 8 release site and read related RFC for each changes. You can go to PHP downloads for installing the latest version of PHP.

PHP 8 Infographic

The following infographic summarizes new features and optimizations offered by PHP 8. The infographic also displays code comparison in PHP 8 vs PHP 7. You will also find PHP 8 performance improvement chart for Just-in-time compilation. Additionally, new classes, functions and other improvements are also highlighted.

(Click to enlarge)

php 8 infographic

Embed this PHP 8 Infographic on Your Site

Find below the embed code to share this infographic on your site. Use the code below to add it to your site. You can also insert the image manually however please make sure to keep the credit text intact.

<!-- Use the code below to embed this infographic on your site -->
<a href="" target="_blank" rel="noopener">
  <img src="" alt="PHP8 Infographic" width="1200" height="6600">
<p>(Source: <a href="">

PHP 8: What’s New

PHP 8.0 comes with new features such as:

  • Named Arguments
  • Attributes
  • Constructor Property Promotion
  • Union Types
  • Match Expressions
  • Nullsafe Operator
  • Saner string to Number comparison
  • Consistent type errors for internal functions
  • Weak Maps, etc.

PHP 8 also introduces two Just In Time Compilation engines, which improves the performance of long-running application by 1.5 to 3 times.

Additionally, type system and error handling improvements are done. You will also find addition of new classes such as Weak Map class and functions such as str_contains(), str_starts_with(), str_ends_with()

Overall, PHP 8 offers better performance, better syntax and improved type safety over its previous generation. You can read full list of changes in the changelog and go to downloads page for getting the latest version of PHP.

Leave a Comment