3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string= "Went for an awesome bike ride today! #biking" #awesome; preg_match_all('/#(\w+)/',$string, $matches); foreach ($matches[1] as $tag) { echo $tag; }
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'preg_match_all' (T_STRING) in /in/YSpaQ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in /in/YSpaQ on line 4
Process exited with code 255.