3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0 - 5.4.20
Parse error: syntax error, unexpected '".,<>?«»"' (T_CONSTANT_ENCAPSED_STRING) in /in/vlVHL on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/vlVHL on line 8
Process exited with code 255.

preferences:
192.97 ms | 1386 KiB | 56 Q