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, $key) { if($item == 'orange') return false return true; } array_ашдеук($fruits, 'test'); var_dump($fruits);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/WVuLZ on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_RETURN in /in/WVuLZ on line 10
Process exited with code 255.