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 == $a;
based on 8X2fS
Output for 4.3.0 - 4.4.9, 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/4SbUD on line 9
Process exited with code 255.