3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(1,25); $b = array('21'=>'test'); $t = array_map(function($a){ return associate($a, $b)}, $a); function associate($av, $b) { $r = (isset($b[$av]))?$b[$av]:null; } print_r($t);
Output for 5.3.0 - 5.4.18
Parse error: syntax error, unexpected '}' in /in/ZGfML on line 6
Process exited with code 255.