3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainurl = "http://www.xmlsoccer.com/FootballDataDemo.asmx/"; $method = "GetAllTeamsByLeagueAndSeason"; $apikey = "GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG"; $league = "Scottish+Premiere+league"; $season = "1314"; $endurl = $mainurl . $method . "?Apikey=" . $apikey . "&league=" . $league . "&seasonDateString=" . $season; $xml = simplexml_load_file($endurl); print_r($endurl); //print_r($xml); foreach($xml->Team as $team) { echo $team->name; }
Output for git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for www.xmlsoccer.com failed: System error in /in/ojB2I on line 9 Warning: simplexml_load_file(http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xmlsoccer.com failed: System error in /in/ojB2I on line 9 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314" in /in/ojB2I on line 9 http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314 Warning: Attempt to read property "Team" on bool in /in/ojB2I on line 13 Warning: foreach() argument must be of type array|object, null given in /in/ojB2I on line 13
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for www.xmlsoccer.com failed: System error in /in/ojB2I on line 9 Warning: simplexml_load_file(http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xmlsoccer.com failed: System error in /in/ojB2I on line 9 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314" in /in/ojB2I on line 9 http://www.xmlsoccer.com/FootballDataDemo.asmx/GetAllTeamsByLeagueAndSeason?Apikey=GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG&league=Scottish+Premiere+league&seasonDateString=1314 Warning: Attempt to read property "Team" on false in /in/ojB2I on line 13 Warning: foreach() argument must be of type array|object, null given in /in/ojB2I on line 13

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:
34.77 ms | 403 KiB | 8 Q