3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(1); $reference =& $array[0]; echo $array[0], '<br>'; theFunction($array); echo $array[0], '<br>'; function theFunction($array) { $array[0] = 2; } ?>
Output for 4.3.0 - 7.2.0
1<br>2<br>