3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $domain = 'www.foo.com'; if (substr($domain, 0, 7) == "http://") { $domain = substr_replace($domain, "", 0, 7); } $url = "http://" . $domain; $params = explode('.', $url);
Output for 4.3.0 - 7.2.0