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/"; echo($text); preg_match_all("/(http|ftp)+(s)?:(\/\/)((\w|\.|\-)+)(\/)?(\S)+/",$text,$matches); print_r($matches[0]);

preferences:
36.62 ms | 402 KiB | 5 Q