The Secret PHP Optimization of version 5.4
Note: This article was originally published at Planet PHP on 14 June 2012.The Secret PHP Optimization of version 5.4 By Manuel Lemos PHP 5.4 introduced several performance optimizations. One of them was not discussed much in the PHP community but it may affect the performance of your code depending on the way you write it.
Read this article to learn more about this less known PHP 5.4 optimization and what you need to do to make your PHP code take advantage of this optimization to run faster spending less memory.
The article also talks about a speculation of what PHP 6 and Zend Engine 3 can be in the future using explicitly declared types of variables and function return values to generate code that makes PHP applications run much faster.