3v4l.org

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

preferences:
34.38 ms | 402 KiB | 5 Q