3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$a = new stdClass();$b = new stdClass();var_dump(spl_object_hash($a));var_dump(spl_object_hash($b));$b = $a;var_dump(spl_object_hash($a));var_dump(spl_object_hash($b));unset($a);var_dump(spl_object_hash($b));
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '$a' (T_VARIABLE) in /in/J74n0 on line 1
Process exited with code 255.