3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)"; preg_match(/$str/, ';', $matches); echo $matches;
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '/', expecting ')' in /in/49h1g on line 5
Process exited with code 255.