3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 5.6.0 - 5.6.30, 7.0.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.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/RMbqE:14 Stack trace: #0 {main}
Process exited with code 255.