3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regex = '/An attempt: hello/'; $value = 'An Attempt: hello'; var_dump( preg_match($regex, $value); );
Output for 5.2.15 - 5.4.21
Parse error: syntax error, unexpected ';' in /in/IAt8P on line 9
Process exited with code 255.