3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.