@syntaxseed @davidbisset I'm guessing assigning to null still keeps the reference count for the array item > 0, so it won't get cleared by garbage collection. And, as you found, explicitly unsetting it does. Tideways has an explanation for memory + variables: https://tideways.com/profiler/blog/what-is-garbage-collection-in-php-and-how-do-you-make-the-most-of-it