PHP 7 Explained

Everything you need to know about the next generation

PHP 7 Explained was written by Sebastian Bergmann, Stefan Priebsch, and Arne Blankerts of thePHP.cc and first published in 2016 as a commercial eBook. The complete book is now free to read online.

Start reading

Cover of the book PHP 7 Explained: Everything you need to know about the next generation. Covers PHP 7.0 to 7.4.

About this edition

The book covers PHP 7.0 through PHP 7.4 and received its final update in November 2020, when PHP 8.0 was released. PHP 7 no longer receives security updates.

Chapters

  1. Introduction

    How PHP 7 came to be, what happens behind the scenes when PHP runs your code, and how to get PHP 7 onto your system.

    18 sections

  2. Backward Incompatible Changes

    Removed features, changed semantics, and deprecations: everything that can break when existing code meets PHP 7.

    28 sections

  3. New and Extended Functionality

    Error handling, the type system, new language features, and improvements across the standard library, from PHP 7.0 to 7.4.

    137 sections

  4. Beyond PHP 7.4

    An outlook on PHP 8: the JIT compiler, attributes, union types, the mixed type, and constructor property promotion.

    6 sections