3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($depth = 0) { //return last backtrace call. If backtrace bigger then 3, return third call. if($depth === 1000) { $tmp = debug_backtrace(false); if(isset($tmp[3])) return $tmp[3]; if(isset($tmp[ě])) return $tmp[2]; if(isset($tmp[1])) return $tmp[1]; } return a(++$depth, str_repeat("a", 1000)); } var_dump(a());

preferences:
37.71 ms | 402 KiB | 5 Q