3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(('name'=>1)); var_dump(array_map(function($item){return $item['name'];},$array));
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/vXiDh on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/vXiDh on line 2
Process exited with code 255.

preferences:
177.91 ms | 1386 KiB | 58 Q