3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=51363 function myErrorHandler($errno, $errstr, $errfile, $errline) { var_dump($errno, $errstr, $errfile, $errline); /* Don't execute PHP internal error handler */ return true; } set_error_handler("myErrorHandler"); $recursive = array(); $recursive[] = &$recursive; var_dump($recursive);
Output for 5.2.14 - 5.2.17, 5.3.3 - 7.1.10
array(1) { [0]=> &array(1) { [0]=> *RECURSION* } }
Output for 5.1.0 - 5.2.13, 5.3.0 - 5.3.2
array(1) { [0]=> &array(1) { [0]=> &array(1) { [0]=> *RECURSION* } } }
Output for 4.3.0 - 5.0.5
array(1) { [0]=> array(1) { [0]=> *RECURSION* } }