Iam new to PHP, I have experience in C/C++. I have the following doubt:
In C or C++ 1) function variables are stored on stack. 2) Global and Static variables are stored on data segment(.bss segment). 3) Register variables are stored in Register 4) program instructions get stored in code segment 5) The memory created dynamically are stored in Heap.
What i want to know is, does above mentioned points are true also for "PHP". That is, Is memory segments & Memory allocation while executing a "PHP" script is similar to that of C/C++?
In C or C++ 1) function variables are stored on stack. 2) Global and Static variables are stored on data segment(.bss segment). 3) Register variables are stored in Register 4) program instructions get stored in code segment 5) The memory created dynamically are stored in Heap.
What i want to know is, does above mentioned points are true also for "PHP". That is, Is memory segments & Memory allocation while executing a "PHP" script is similar to that of C/C++?
Comment