- 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.
<?php
$hash = ['key' => 'value', 'other' => 'value2'];
var_dump(array_map(function ($key, $value) { return ['Key' => $key, 'Value' => $value]}, $hash));