3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "google.at;davetrudes.com asdf http://www.youtube.com/user/davetrudes http://code.google.com/u/dave.trudes/"; $match = null; preg_match_all('\b((https?|ftp|file)://|(www|ftp)\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[A-Z0-9+&@#/%=~_|$]\', $string, $match); var_dump($match);
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected ''\b((https?|ftp|file)://|(www|' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /in/Lfi5B on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /in/Lfi5B on line 8
Process exited with code 255.