PHP7 Features

PHP7 Features

two major changes

  1. 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;
  2. Errors can be caught using try...catch;

performance optimization

  1. Zval uses stack memory directly to avoid allocating memory from the heap each time
  2. Increase the zend_string storage array hash to avoid hashing the key value of each plan
  3. Added 4 opcode instructions (call_user_function, is_int/string/array, strlen, defined), faster

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325857094&siteId=291194637
Recommended