3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match( "@^(?:http://)?([^/]+)@i", "http://www.php.net/index.htrnl", $matches); $match = $matches[l]; echo $match;
Output for 5.3.0 - 7.1.0
Notice: Use of undefined constant l - assumed 'l' in /in/4mGFo on line 6 Notice: Undefined index: l in /in/4mGFo on line 6
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant l - assumed 'l' in /in/4mGFo on line 6 Notice: Undefined index: l in /in/4mGFo on line 6