Yaf 3.1.0 refactors the autoloader, rewrites the static/rewrite router core, switches namespace matching to hashing, and avoids memory allocations — an 11% QPS gain in benchmarks.
with 0 CommentPHP 7.4 ships FFI (Foreign Function Interface), letting you call C libraries from pure PHP. A worked example using libcurl — from a basic fetch to a WRITEFUNCTION callback and preload-safe usage — shows how FFI removes the need to write a C extension wrapper.
with 0 CommentWhy PHP7 introduced Fast zend parameters parsing (FAST_ZPP): zend_parse_parameters consumed ~6% of runtime in the wordpress benchmark, so PHP7 replaces the runtime type_spec string with compile-time macro-based parsing that inlines down to a single pointer read.
with 0 CommentWhy PHP7's zend_array replaced the PHP5 Hashtable: dropping zval**, making buckets a contiguous array, and adding packed / static-key / empty / immutable array optimizations — a ~56-byte struct and ~32-byte bucket that slash memory and improve cache locality.
with 0 Comment