3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a($depth = 0) { //return last backtrace call. If backtrace bigger then 3, return third call. if($depth === 1000) { $tmp = debug_backtrace(false); return; } return a(++$depth, str_repeat("a", 1000)); } var_dump(a());
Output for 5.2.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NULL
Output for 4.3.0 - 5.2.4
Warning: Wrong parameter count for debug_backtrace() in /in/tKchG on line 7 NULL