3v4l.org

run code in 200+ PHP versions simultaneously
<?php $array = array('a' => 'Hello', 'b' => 'World'); array_walk($array, 'adda'); function adda(&$value, &$key) { $key = "a".$key; } var_dump($array);