# Beyond PHP 7.4

> Chapter of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/beyond-php-7.4/>

We started to work on this book in the summer of 2015. Back then, the PHP community was celebrating the language’s twentieth anniversary. Five years – and four minor versions of PHP later – it is time to look forward to PHP 8, so in this chapter we will take a look on some new features that have already been implemented for PHP 8.0.

PHP 8 will bring many more improvements than the ones discussed below – and their discussion is not as in-depth as that of the new features that were introduced in the various PHP 7 versions. This chapter merely intends to spark your interest in PHP’s next major version.

## In this section

- [Just-in-Time Compiler (JIT)](https://php7explained.com/beyond-php-7.4/just-in-time-compiler-jit/index.html.md): The just-in-time compiler of PHP 8 uses DynASM to generate native code from PHP bytecode and its SSA form in OpCache, at the cost of added complexity.
- [Attributes](https://php7explained.com/beyond-php-7.4/attributes/index.html.md): PHP 8 attributes add structured, syntactic metadata to declarations of classes, methods and more, and can be queried using the Reflection API.
- [Union Types](https://php7explained.com/beyond-php-7.4/union-types/index.html.md): PHP 8 adds full support for union types such as bool|int wherever types can be declared, with examples of non-strict and strict scalar type handling.
- [mixed Type](https://php7explained.com/beyond-php-7.4/mixed-type/index.html.md): The mixed type of PHP 8 is a shorthand for all types except classes, interfaces and void, for when a type cannot be specified more precisely.
- [Constructor Property Promotion](https://php7explained.com/beyond-php-7.4/constructor-property-promotion/index.html.md): Constructor property promotion in PHP 8 is syntax sugar for declaring properties and initializing them in the constructor, shown with a Point class.
- [Conclusion](https://php7explained.com/beyond-php-7.4/conclusion/index.html.md): Closing remarks from the authors: with the release of PHP 8, content updates to PHP 7 Explained end, apart from patch releases that fix mistakes.

---

Previous: [LDAP](https://php7explained.com/new-and-extended-functionality/ldap/index.html.md) | Next: [Just-in-Time Compiler (JIT)](https://php7explained.com/beyond-php-7.4/just-in-time-compiler-jit/index.html.md)
