3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a($b, $c) { $arr = array($b, $c); $e = new Exception(); $t = $e->getTrace(); $arr2 = $arr; var_dump($arr2); var_dump($t); } a(2, 3);
based on QZ6XW
Output for 7.0.0 - 7.2.0
array(2) { [0]=> int(2) [1]=> int(3) } array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/bAWBL" ["line"]=> int(13) ["function"]=> string(1) "a" ["args"]=> array(2) { [0]=> int(2) [1]=> int(3) } } }
Output for 5.3.20 - 5.6.28
array(2) { [0]=> int(2) [1]=> int(3) } array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/bAWBL" ["line"]=> int(13) ["function"]=> string(1) "a" ["args"]=> array(2) { [0]=> &int(2) [1]=> &int(3) } } }