3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = simplexml_load_file("http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1"); foreach ($xml->members->steamID64 as $friendid) { if (substr($friendid,-1)%2==0) $server=0; else $server=1; $auth=bcsub($friendid,'76561198071550434'); $auth=bcsub($auth,$server); $auth=bcdiv($auth,2); $steamcomid="STEAM_0:".$server.':'.$auth; echo "$steamcomid<br>"; // or do watever with steamids } ?>
Output for 7.2.0 - 7.3.0beta1
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/8YjkH on line 3 Warning: simplexml_load_file(http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/8YjkH on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1" in /in/8YjkH on line 3 Notice: Trying to get property 'members' of non-object in /in/8YjkH on line 5 Notice: Trying to get property 'steamID64' of non-object in /in/8YjkH on line 5 Warning: Invalid argument supplied for foreach() in /in/8YjkH on line 5
Output for 7.0.20, 7.1.5 - 7.1.20
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/8YjkH on line 3 Warning: simplexml_load_file(http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/8YjkH on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1" in /in/8YjkH on line 3 Notice: Trying to get property of non-object in /in/8YjkH on line 5 Notice: Trying to get property of non-object in /in/8YjkH on line 5 Warning: Invalid argument supplied for foreach() in /in/8YjkH on line 5
Output for 5.6.0 - 7.0.13, 7.1.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/8YjkH on line 3 Warning: simplexml_load_file(http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/8YjkH on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1" in /in/8YjkH on line 3 Notice: Trying to get property of non-object in /in/8YjkH on line 5 Notice: Trying to get property of non-object in /in/8YjkH on line 5 Warning: Invalid argument supplied for foreach() in /in/8YjkH on line 5