3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object) array(); $b = (object) array(); $a->a = $a; $b->a = $a; echo $a == $b;
based on 4SbUD
Output for 5.0.3 - 5.1.6, 5.2.4 - 7.2.0
1
Output for 5.0.0 - 5.0.2, 5.2.0 - 5.2.3
Fatal error: Nesting level too deep - recursive dependency? in /in/Cju2Q on line 9
Process exited with code 255.
Output for 4.3.0 - 4.4.9