3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for premium.nba.com 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 for premium.nba.com failed: System error in /in/UrrIK on line 4
Output for 8.0.13 - 8.0.30
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 8.0.0 - 8.0.12
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution in /in/UrrIK on line 4
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1, 7.3.32 - 7.3.33, 7.4.0, 7.4.26 - 7.4.33
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 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.25
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution in /in/UrrIK on line 4

preferences:
235.15 ms | 403 KiB | 294 Q