3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test_odd($var) { (in_array ( 'Program_Director' , $var) return; } $a1=array("Program_Director","Consultant",2,3,4); print_r(array_filter($a1,"test_odd"));
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/Bk93E on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_RETURN in /in/Bk93E on line 6
Process exited with code 255.