3v4l.org

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

preferences:
30.75 ms | 402 KiB | 5 Q