3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $domain = "stackoverflow.com"; $uriToTest = "http://stackoverflow.com/"; $pattern = "/^http(s)?:\/\//"; $result= preg_match($pattern, $uriToTest); print_r($result);

preferences:
40.76 ms | 402 KiB | 5 Q