3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class t { } $t = new t(); $t->i = $t; var_dump($t);
Output for 5.2.14 - 5.2.17, 5.3.3 - 7.1.0
object(t)#1 (1) { ["i"]=> *RECURSION* }
Output for 5.0.0 - 5.2.13, 5.3.0 - 5.3.2
object(t)#1 (1) { ["i"]=> object(t)#1 (1) { ["i"]=> *RECURSION* } }
Output for 4.3.0 - 4.4.9
object(t)(1) { ["i"]=> object(t)(0) { } }