3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($a) { $a = 10; var_dump(debug_backtrace()); } foo(5);
based on 2kr2J
Output for 7.0.0 - 7.1.0
array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/eBMIR" ["line"]=> int(8) ["function"]=> string(3) "foo" ["args"]=> array(1) { [0]=> int(10) } } }
Output for 4.3.0 - 5.6.28
array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/eBMIR" ["line"]=> int(8) ["function"]=> string(3) "foo" ["args"]=> array(1) { [0]=> &int(5) } } }