PHP7 Features
Others
2022-04-27 20:52:41
views: 0
PHP7 Features
two major changes
- Added restrictions on function input and return value types, so that you don't need to judge the parameter data type every time to prepare for JIT;
- Errors can be caught using try...catch;
performance optimization
- Zval uses stack memory directly to avoid allocating memory from the heap each time
- Increase the zend_string storage array hash to avoid hashing the key value of each plan
- Added 4 opcode instructions (call_user_function, is_int/string/array, strlen, defined), faster
Origin http://43.154.161.224:23101/article/api/json?id=325857094&siteId=291194637