3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match( "@^(?:http://)?([^/]+)@'", "http://www.php.net/index.htrnl", $matches); $match = $matches[l]; echo $match;
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier ''' in /in/f2gLK on line 5 Notice: Use of undefined constant l - assumed 'l' in /in/f2gLK on line 6
Output for hhvm-3.12.0
Warning: Unknown modifier ''': [@^(?:http://)?([^/]+)@'] in /in/f2gLK on line 5 Notice: Use of undefined constant l - assumed 'l' in /in/f2gLK on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier ''' in /in/f2gLK on line 5 Notice: Use of undefined constant l - assumed 'l' in /in/f2gLK on line 6 Notice: Undefined index: l in /in/f2gLK on line 6
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier ''' in /in/f2gLK on line 5 Notice: Use of undefined constant l - assumed 'l' in /in/f2gLK on line 6 Notice: Undefined index: l in /in/f2gLK on line 6