3v4l.org

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