Summary
In this chapter, we have learned how PHP 7 is an optimization in itself, how avoiding dynamic structures in general will always boost the performance of your PHP scripts and how certain functional programming techniques such as memoization can be strong allies when optimizing code performance.
In the next chapter, we will learn how to cope with input and output (I/O) poor latency by learning about generators and asynchronous non-blocking code, multithreading with the POSIX threads (pthreads
) library and multitasking with the ReactPHP
library.