3v4l.org

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

preferences:
34.53 ms | 402 KiB | 5 Q