Home > Article > Backend Development > What optimizations have been made at the bottom of PHP7?
The optimizations made at the bottom of PHP7 include: 1. ZVAL structure optimization, reducing the occupancy from 24 bytes to 16 bytes; 2. The internal type "zend_string", the structure member variable uses the "char" array, not Use "char*"; 3. PHP array implementation changes from hashtable to zend, etc.
PHP7 underlying optimization
ZVAL structure optimization, occupying 24 The bytes are reduced to 16 bytes
The internal type is zend_string, the structure member variables use char arrays, not char*
PHP array implementation Changed from hashtable to zend array
Function calling mechanism, improved function calling mechanism, reduced some instructions by optimizing parameter transfer link
Recommended Study: "PHP7"
The above is the detailed content of What optimizations have been made at the bottom of PHP7?. For more information, please follow other related articles on the PHP Chinese website!