3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a($a) { $a = 'waaa'; var_dump(func_get_args()); var_dump(debug_backtrace()); } a('blaaat!');
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { [0]=> string(4) "waaa" } array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/8PBYK" ["line"]=> int(11) ["function"]=> string(1) "a" ["args"]=> array(1) { [0]=> string(4) "waaa" } } }
Output for 4.3.0 - 5.6.28
array(1) { [0]=> string(7) "blaaat!" } array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/8PBYK" ["line"]=> int(11) ["function"]=> string(1) "a" ["args"]=> array(1) { [0]=> &string(7) "blaaat!" } } }