3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( "@^(?:http://)?([^/]+)@i", "http://www.php.net/index.htrnl", $matches); $match = $matches[l]; echo $match;

preferences:
40.35 ms | 402 KiB | 5 Q