Why the execution order of destructors in PHP is stack representation

At the end of the

php program, the order in which destructors are executed, why is the object created first and executed last?
and the destructor is triggered when an Object is destroyed
in the Bird blog:

C, " " .
PHP, " " HastTable. , " " 
HastTablezval

that said, when PHP parses, it doesn"t seem to prove that the variable name is stored in stack memory. Is it possible that the zval structure is stored in stack memory?
so, at the end of PHP, do you release the zval of all variables (objects) first? Or how to clean up the variable names and zval
one by one according to the variable table has become a first-in-first-out, stack space operation?

the only thing I can think of now is that the hash table is a two-dimensional array, the first layer stores each variable, the second layer stores the variable name and zval pointer of each variable, and the array of C language is stored in the stack space by default. When the PHP program ends, it is cleaned one by one according to the contents of this stack space, which leads to my question
, but I feel that my idea is based on the result, which is far-fetched and puzzled. Thank you all


the real generated object is in the heap memory, and the pointer to the object is added to the symbol table in the stack memory


. During the request completion cleaning phase, the symbol table is traversed in reverse, and the variables in the
php are stored in the heap memory one by one. The kernel's local variables are stored in the stack
php kernel, which simulates the operation of the stack in some places

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47552-44c14.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47552-44c14.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?