3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "http://google.at;www.davetrudes.com asdf http://www.youtube.com/user/davetrudes http://code.google.com/u/dave.trudes/"; $match = null; preg_match_all('/(?i)\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/', $string, $match); var_dump($match);
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '"' in /in/QDWXN on line 8
Process exited with code 255.