3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a(){var_dump(debug_backtrace());}; function b(){a();}; function c(){b();}; c();
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(3) ["function"]=> string(1) "a" ["args"]=> array(0) { } } [1]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(4) ["function"]=> string(1) "b" ["args"]=> array(0) { } } [2]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(8) ["function"]=> string(1) "c" ["args"]=> array(0) { } } }
Output for hhvm-3.10.0
array(3) { [0]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(26) ["function"]=> string(1) "a" ["args"]=> array(0) { } } [1]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(26) ["function"]=> string(1) "b" ["args"]=> array(0) { } } [2]=> array(4) { ["file"]=> string(9) "/in/7OpcJ" ["line"]=> int(13) ["function"]=> string(1) "c" ["args"]=> array(0) { } } }