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:
41.5 ms | 402 KiB | 5 Q