3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.19, 5.4.0 - 5.4.9
Parse error: syntax error, unexpected '}' in /in/LkCJk on line 3
Process exited with code 255.

preferences:
166.41 ms | 1395 KiB | 37 Q