3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getCurrenciesNames() { return array_map( function ($currency) { return $currency['combname']; }, [ 0 => ['combname' => 'uds'], 1 => ['combname' => 'uds'], 2 => ['combname' => 'uds'], 3 => ['combname' => 'uds'], 4 => ['combname' => 'uds'], ] ); } getCurrenciesNames()
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected end of file in /in/MpvUJ on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/MpvUJ on line 8
Process exited with code 255.