3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$arr = array('id' => 1, 'name' => 'Fred'); $result = array_map( function ($value, $key) { return $value; }, $arr, array_keys($arr) ); var_dump($result);
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '$arr' (T_VARIABLE) in /in/mAo6u on line 1
Process exited with code 255.