PHP 7 has been completely rewritten from the ground up based on the PHP Next Generation (phpng or PHPNG) targeting performance. However, there are always more ways to improve the performance of the application, including writing high performance code, using best practices, web server optimizations, caching, and so on. In this chapter, we will discuss such optimizations listed as follows:
NGINX and Apache
HTTP server optimization
Content Delivery Network (CDN)
JavaScript/CSS optimization
Full page caching
Varnish
The infrastructure