3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class wpdb { function bail() { wp_die(); } } function test() { var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)); } register_shutdown_function('test'); function wp_die() { die('x'); }
Output for 5.4.0 - 7.2.0
array(1) { [0]=> array(1) { ["function"]=> string(4) "test" } }
Output for 5.3.6 - 5.3.29
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/Nbmqc on line 10 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/Nbmqc on line 10 Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/Nbmqc on line 10 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/Nbmqc on line 10 Warning: Wrong parameter count for debug_backtrace() in /in/Nbmqc on line 10 NULL