3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { b(); } function b() { c(); } function c() { d(); } function d() { e(); } function e() { var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3)); } a();
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(3) { ["file"]=> string(9) "/in/DNtUc" ["line"]=> int(20) ["function"]=> string(1) "e" } [1]=> array(3) { ["file"]=> string(9) "/in/DNtUc" ["line"]=> int(15) ["function"]=> string(1) "d" } [2]=> array(3) { ["file"]=> string(9) "/in/DNtUc" ["line"]=> int(10) ["function"]=> string(1) "c" } }
Output for 5.3.6 - 5.3.29
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/DNtUc on line 25 NULL
Output for 5.2.5 - 5.3.5
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/DNtUc on line 25 Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/DNtUc on line 25 NULL
Output for 4.3.0 - 5.2.4
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/DNtUc on line 25 Warning: Wrong parameter count for debug_backtrace() in /in/DNtUc on line 25 NULL