3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $numbers = array(1,2,3,4,5,6); array_walk($numbers, function (&$n) { return $n + 10; }); var_dump($numbers);
based on Rh3cW
Output for 5.6.0 - 7.3.0alpha1
array(6) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) }