3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for steamcommunity.com 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 for steamcommunity.com 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 Warning: Attempt to read property "members" on bool in /in/8YjkH on line 5 Warning: Attempt to read property "steamID64" on null in /in/8YjkH on line 5 Warning: foreach() argument must be of type array|object, null given in /in/8YjkH on line 5
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for steamcommunity.com 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 for steamcommunity.com 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 Warning: Attempt to read property "members" on false in /in/8YjkH on line 5 Warning: Attempt to read property "steamID64" on null in /in/8YjkH on line 5 Warning: foreach() argument must be of type array|object, null given in /in/8YjkH on line 5

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
69.38 ms | 402 KiB | 8 Q