3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'hts://www.google.co.m'; preg_match('/(.*)\:\/\/.*/', $url, $match); print_R($match);

preferences:
72.87 ms | 405 KiB | 6 Q