3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function modifyArray (&$array) { foreach ($array as &$value) { $value = $value + 2; } echo $value; $value = $value + 3; } $array = array (1, 2, 3); modifyArray($array); print_r($array);