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()); } a();
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(5) { [0]=> array(4) { ["file"]=> string(9) "/in/NsKtg" ["line"]=> int(20) ["function"]=> string(1) "e" ["args"]=> array(0) { } } [1]=> array(4) { ["file"]=> string(9) "/in/NsKtg" ["line"]=> int(15) ["function"]=> string(1) "d" ["args"]=> array(0) { } } [2]=> array(4) { ["file"]=> string(9) "/in/NsKtg" ["line"]=> int(10) ["function"]=> string(1) "c" ["args"]=> array(0) { } } [3]=> array(4) { ["file"]=> string(9) "/in/NsKtg" ["line"]=> int(5) ["function"]=> string(1) "b" ["args"]=> array(0) { } } [4]=> array(4) { ["file"]=> string(9) "/in/NsKtg" ["line"]=> int(28) ["function"]=> string(1) "a" ["args"]=> array(0) { } } }