3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = \stdClass(); $b = \stdClass(); $a->foo = 'bar'; $b->foo = 'bar'; $ah = spl_object_hash($a); $bh = spl_object_hash($b); echo $ah . PHP_EOL; echo $bh . PHP_EOL; echo $ah == $bh ? 'true' : 'false';
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function stdClass() in /in/RIT3S:3 Stack trace: #0 {main} thrown in /in/RIT3S on line 3
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function stdClass() in /in/RIT3S on line 3
Process exited with code 255.