3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "2014 urmymuse Licensed to the public under http://creativecommons.org/licenses/by/3.0/ Verify at http://ccmixter.org/files/urmymuse/47486"; $matches = preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#i', $str, $urls); var_dump($urls);

preferences:
31.58 ms | 405 KiB | 5 Q