3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a_test($str) { echo "\nHi: $str"; var_dump(debug_backtrace()); } a_test('friend');
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hi: friendarray(1) { [0]=> array(4) { ["file"]=> string(9) "/in/clTrR" ["line"]=> int(8) ["function"]=> string(6) "a_test" ["args"]=> array(1) { [0]=> string(6) "friend" } } }
Output for 4.3.0 - 5.6.28
Hi: friendarray(1) { [0]=> array(4) { ["file"]=> string(9) "/in/clTrR" ["line"]=> int(8) ["function"]=> string(6) "a_test" ["args"]=> array(1) { [0]=> &string(6) "friend" } } }