3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '76561198050571807'; $key = '36A35217F21921A116FB6A83455C10C2'; $link = file_get_contents('http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=36A35217F21921A116FB6A83455C10C2&steamid=76561198050571807&format=json'); $myarray = json_decode($link, true); print $myarray['response']['game_count'][0]; ?>
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.steampowered.com failed: System error in /in/lWYb2 on line 5 Warning: file_get_contents(http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=36A35217F21921A116FB6A83455C10C2&steamid=76561198050571807&format=json): Failed to open stream: php_network_getaddresses: getaddrinfo for api.steampowered.com failed: System error in /in/lWYb2 on line 5 Warning: Trying to access array offset on value of type null in /in/lWYb2 on line 8 Warning: Trying to access array offset on value of type null in /in/lWYb2 on line 8 Warning: Trying to access array offset on value of type null in /in/lWYb2 on line 8
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.steampowered.com failed: System error in /in/lWYb2 on line 5 Warning: file_get_contents(http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=36A35217F21921A116FB6A83455C10C2&steamid=76561198050571807&format=json): Failed to open stream: php_network_getaddresses: getaddrinfo for api.steampowered.com failed: System error in /in/lWYb2 on line 5 Warning: Trying to access array offset on null in /in/lWYb2 on line 8 Warning: Trying to access array offset on null in /in/lWYb2 on line 8 Warning: Trying to access array offset on null in /in/lWYb2 on line 8

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:
38.87 ms | 402 KiB | 8 Q