Innovate faster and cut risk with PHP experts from Zend Services.
Learn PHP from PHP experts with free, on-demand, and instructor led courses.
Submit support requests and browse self-service resources.
It’s a good time to say few words about PHP Memory Manager.
The PHP Memory Manager API looks very much like classical libc malloc API, but it uses separate heap and it is especially optimized for PHP requirements. Usually, all the memory allocated during request processing should be freed at the end of a request at once. PHP allocator is especially optimized to do this extremely fast and without system memory fragmentation. It also avoids thread-safe checks, because even in multi-thread environment, each PHP thread is going to use a separate heap.
The compete Zend Memory Manager API is defined in Zend/zend_alloc.h.
Request PDF Version