3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = <<<EOT Blablalbzdjsdf #drinkdelamerde qsifhsdfjmh omhwdmofihg #oh_yeah EOT; $result = []; preg_match_all('/((?<!\w)#\w+)/i', $subject, $result, PREG_PATTERN_ORDER); var_dump($result); for ($i = 0; $i < count($result[0]); $i++) { echo($result[0][$i], PHP_EOL); }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ',' in /in/aD3r9 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/aD3r9 on line 5
Process exited with code 255.