3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'ht://www.google.co.m'; if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { $url = "http://" . $url; } print_R($url);
based on LICpg
Output for 4.3.0 - 7.2.0
http://ht://www.google.co.m