Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

68%
PHP & Zend Engine (50 Qs)•Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

How does the PHP Garbage Collector manage root buffers to avoid memory spikes?

senior LevelAsync & PromisesMemory Management

In Simple Words: The GC root buffer tracks up to 10,000 suspect objects. When full, it performs a color-marking cycle (Purple, Grey, Black, White) to detect references that only point to each other.