3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function() { exit; }); $array = [new StdClass]; register_shutdown_function(function() use ($array) { var_dump($array); }); var_dump([1] == $array);
based on Sv3NY
Output for 7.0.0 - 7.2.8
array(1) { [0]=> object(stdClass)#2 (0) { } }
Output for 5.5.0 - 5.6.28
*RECURSION*