3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ( 'a' => 'Hello', 'b' => 'World'); array_walk($array, 'adda'); function adda(&$value, &$key) { $key = "a".$key; }
Output for 5.4.0 - 5.4.4
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in S9PbD on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.14
Parse error: syntax error, unexpected T_DOUBLE_ARROW in S9PbD on line 3
Process exited with code 255.

preferences:
164.89 ms | 1395 KiB | 27 Q