3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(&$something) { $a = func_get_args(); bar($a[0]); } function bar(&$x) { $x = 2; } $var = 1; foo($var); echo $var;
Output for 4.3.0 - 7.2.0
1