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.
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ