3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); function test($item) { if($item == 'orange') return false; return true; } ($fruits = array_filter($fruits, 'test'); var_dump($fruits);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ';' in /in/hZA2N on line 14
Process exited with code 255.

preferences:
174.31 ms | 1399 KiB | 67 Q