3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3]); $b = array("one", "two", "three"); var_dump(array_map(function($number, $word) { return "$number is $word"; }, $a, $b)); ?>
Output for 5.3.0 - 5.3.23, 5.4.0 - 5.4.13
Parse error: syntax error, unexpected ']', expecting ')' in /in/K9X25 on line 3
Process exited with code 255.

preferences:
160.17 ms | 1395 KiB | 45 Q