title: spl_object_hash() return different ids
body: <p>I'm learning about <a href="http://php.net/manual/en/function.spl-object-hash.php" rel="nofollow"><code>spl_object_hash()</code></a> and don't quite understand what's behind the scene in this case:</p>
  
  
  
  <pre><code>$obj = new stdClass;
  $id1 = spl_object_hash($obj);
  $id2 = spl_object_hash(new stdClass);
  echo $id1.'&lt;br&gt;'.$id2;
  </code></pre>
  
  <p>Q1. Why <code>$id1 !== $id2</code>?</p>
  
  <p>In the reference:</p>
  
  <blockquote>
    <p>When an object is destroyed, its hash may be reused for other objects.</p>
  </blockquote>
  
  <p>Q.2 Is there something relates to that statement? Or I missed something else?</p>