3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($depth = 0) { if($depth === 1000) { return array_slice(array_filter(array_slice(debug_backtrace(), 0, 3)), -1, 1); } return a(++$depth, str_repeat("a", 1000)); } var_dump(a());

preferences:
40.9 ms | 402 KiB | 5 Q