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);
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array(2) { [0]=> array(2) { [0]=> string(43) "http://creativecommons.org/licenses/by/3.0/" [1]=> string(40) "http://ccmixter.org/files/urmymuse/47486" } [1]=> array(2) { [0]=> string(1) "/" [1]=> string(1) "6" } }

preferences:
69.28 ms | 1007 KiB | 4 Q