3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.30
Parse error: syntax error, unexpected ';' in /in/hZA2N on line 14
Process exited with code 255.