3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $needles = array('foor', 'bar', 'baz', 'hello', 'world'); $haystack = 'Hello! This is foo bar :)'; $result = stristr($haystack, { return $needles; }); var_dump($result);
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.16
Parse error: syntax error, unexpected '{' in /in/fJUGG on line 5
Process exited with code 255.