3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = ['key' => 'value', 'other' => 'value2']; var_dump(array_map(function ($key, $value) { return ['Key' => $key, 'Value' => $value]}, $hash));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected '}', expecting ';' in /in/MBuGP on line 4
Process exited with code 255.

preferences:
174.12 ms | 1395 KiB | 36 Q