3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { var $test = 'test'; } $test = new Test(); var_dump(spl_object_has($test)); $test = array($test); foreach ($test as $t) { $t->test = 'nope'; var_dump(spl_object_hash($t)); } var_dump($test);

preferences:
40.76 ms | 402 KiB | 5 Q