3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.eurobytes.nl/tutorials/league-of-legends-under-ubuntu' function getPlus1($url) { $html = file_get_contents( "https://plusone.google.com/_/+1/fastbutton?url=".urlencode($url)); $doc = new DOMDocument(); $doc->loadHTML($html); $counter=$doc->getElementById('aggregateCount'); return $counter->nodeValue; } ?>
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/LvgpP on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FUNCTION in /in/LvgpP on line 4
Process exited with code 255.

preferences:
193.26 ms | 1386 KiB | 63 Q