3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(0 => 3, 3 => 1, 1 => 'dupa'); print_r(array_map(function($x) { return (bool) $x}, $x))
Output for 5.3.0 - 5.4.9
Parse error: syntax error, unexpected '}' in /in/Mf5Om on line 3
Process exited with code 255.