3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test(){ list(, $caller) = debug_backtrace(false); echo '<pre>'; print_r($caller); } function haha(){ test(); } haha();
Output for 5.2.5 - 7.1.0
<pre>Array ( [file] => /in/CATCQ [line] => 13 [function] => haha [args] => Array ( ) )
Output for 4.3.0 - 5.2.4
Warning: Wrong parameter count for debug_backtrace() in /in/CATCQ on line 3 <pre>