title: php - what's the benefit of unsetting variables?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/584960/whats-better-at-freeing-memory-with-php-unset-or-var-null">What&#39;s better at freeing memory with PHP: unset() or $var = null</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a real benefit of unsetting variables in php?</p>
  
  <pre><code>class test {
  
    public function m1($a, $b)
      $c = $a + $b;
      unset($a, $b);
      return $c;
    }
  }
  </code></pre>
  
  <p>Is it true that unsetting variables doesn't actually decrease the memory consumption during runtime?</p>