3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
Output for 4.3.0 - 7.2.0
1