3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $json_url = 'https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508'; $res = file_get_contents($json_url); $json_output = json_decode ( $res, true ); var_dump($json_output); ?>
based on lNbEb
Output for 5.4.15 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7esmU on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508 (Could not resolve host: api.steampowered.com) in /in/7esmU on line 3 NULL
Output for 5.3.0 - 5.4.14
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: No such file or directory in /in/7esmU on line 3 NULL
Output for 5.2.0 - 5.2.17
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: No such file or directory in /in/7esmU on line 3 NULL
Output for 5.0.0 - 5.1.6
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: No such file or directory in /in/7esmU on line 3 Fatal error: Call to undefined function json_decode() in /in/7esmU on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: No such file or directory in /in/7esmU on line 3 Fatal error: Call to undefined function: json_decode() in /in/7esmU on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508): failed to open stream: No such file or directory in /in/7esmU on line 3 Fatal error: Call to undefined function: json_decode() in /in/7esmU on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7esmU on line 3 Warning: file_get_contents(https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1/?key=D19D5C50DE35AAEE9B5C5E5F37B2ABD0&steamid=76561198001581508) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/7esmU on line 3 Fatal error: Call to undefined function: json_decode() in /in/7esmU on line 4