3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(token_get_all(<<<PHP function extractURL($url) { if (preg_match('#http://www.google.com/?$#i', $url, $match)) { return $match[1]; } return null; } PHP; ));
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected ';' in /in/WeDoq on line 10
Process exited with code 255.

preferences:
187.04 ms | 1395 KiB | 56 Q