3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "http://www.google.com/\\r\\nhttp://www.google.com/\\r\\nhttp://www.google.com/"; preg_match_all("/(http|ftp)+(s)?:(\/\/)((\w|\.|\-)+)(\/)?(\S)+/",$text,$matches); print_r($matches[0]);

preferences:
42.34 ms | 402 KiB | 5 Q