3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2,3,4); foreach ($array as $key => $value) { $value = &$value . ' R$'; } var_dump($array);
based on vifU7
Output for 5.6.0 - 7.3.0alpha1
array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) }