3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function search($input) { $result = $input; for($a=0,$a<count($input),$a++) { print "1"; } foreach($input as $a) foreach($input as $b) $result []= $a . $b; return array_filter(array_unique($result)); } print json_encode(search(["a", "b"])) . "\n"; print json_encode(search(["a", "b", "c"]));
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ')', expecting ';' in /in/bj9T2 on line 7
Process exited with code 255.