Answer
PHP uses reference counting to track variables. The garbage collector removes cyclic references. Large arrays or extensions can exhaust memory if not properly cleaned.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ