- var_dump: documentation ( source)
- spl_object_hash: documentation ( source)
<?php
$hash1 = spl_object_hash(new stdClass);
$hash2 = spl_object_hash(new stdClass);
$hash3 = spl_object_hash(new stdClass);
var_dump($hash1 === $hash2 && $hash2 === $hash3);