3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class wpdb { function bail() { wp_die(); } } function wp_die() { var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)); die('x'); } $a = new wpdb(); $a->bail();
based on aHKLf
Output for 5.4.0 - 7.2.0
array(2) { [0]=> array(3) { ["file"]=> string(9) "/in/UXEYO" ["line"]=> int(5) ["function"]=> string(6) "wp_die" } [1]=> array(5) { ["file"]=> string(9) "/in/UXEYO" ["line"]=> int(15) ["function"]=> string(4) "bail" ["class"]=> string(4) "wpdb" ["type"]=> string(2) "->" } } x
Output for 5.3.6 - 5.3.29
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/UXEYO on line 10 NULL x
Output for 5.2.5 - 5.3.5
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/UXEYO on line 10 Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/UXEYO on line 10 NULL x
Output for 4.3.0 - 5.2.4
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /in/UXEYO on line 10 Warning: Wrong parameter count for debug_backtrace() in /in/UXEYO on line 10 NULL x