3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file = 'http://premium.nba.com/pr/leaguepass/api/tk/tk.jhtml?source=away&clientType=iphone&gameId=0021500484&sg=1451617178|n^n^v^Nam1jWcY5wdbqBmn&cid=6XJ-zRrJQp6fI9WVFxzhyg&view=xml&tid=G8a8fcc0a-733a-484a-af37-a28e0504996d&nsfg=1546210255|billing.lprdo^billing.lpbp^swvOQFrV2xNDuzyE'; $data = file_get_contents($file); // or use readfile('games.json') for local file echo $data;
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/UrrIK on line 4 Warning: file_get_contents(http://premium.nba.com/pr/leaguepass/api/tk/tk.jhtml?source=away&clientType=iphone&gameId=0021500484&sg=1451617178|n^n^v^Nam1jWcY5wdbqBmn&cid=6XJ-zRrJQp6fI9WVFxzhyg&view=xml&tid=G8a8fcc0a-733a-484a-af37-a28e0504996d&nsfg=1546210255|billing.lprdo^billing.lpbp^swvOQFrV2xNDuzyE): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/UrrIK on line 4
Output for 5.5.0 - 7.0.11, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UrrIK on line 4 Warning: file_get_contents(http://premium.nba.com/pr/leaguepass/api/tk/tk.jhtml?source=away&clientType=iphone&gameId=0021500484&sg=1451617178|n^n^v^Nam1jWcY5wdbqBmn&cid=6XJ-zRrJQp6fI9WVFxzhyg&view=xml&tid=G8a8fcc0a-733a-484a-af37-a28e0504996d&nsfg=1546210255|billing.lprdo^billing.lpbp^swvOQFrV2xNDuzyE): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UrrIK on line 4