3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [1, 2, 3, 4]; $callable = function(&$value, $key) { $value = $value * 100; echo $key.PHP_EOL; }; $newArray = array_map($callable, $array); print_r($newArray);