3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '/', expecting ')' in /in/49h1g on line 5
Process exited with code 255.

preferences:
184.41 ms | 1395 KiB | 61 Q