3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$steamid = "76561197963758467"; $steamid = "76561198014930023"; for($i=0;$i<10;$i++) { $nextid = number_format($steamid + ($i * 250123),0,'.',''); $profile = file_get_contents("http://steamcommunity.com/profiles/$nextid?xml=1"); $xml = simplexml_load_string($profile); if($xml->privacyMessage) { $msg = 'notsetup'; } else { $msg = $xml->memberSince; } echo "<a href="http://steamcommunity.com/profiles/$nextid">$nextid</a> - $msg<br/>"; }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected 'http' (T_STRING), expecting ',' or ';' in /in/RMbqE on line 14
Process exited with code 255.

preferences:
165.68 ms | 1399 KiB | 36 Q