3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsonfile = file_get_contents('https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo'); $jsonarray = json_decode($jsonfile, true); echo $jsonarray['Meta Data']; var_dump($jsonarray);
based on vZ87d
Output for 7.3.0rc3
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/RW1rR on line 3 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo) is not within the allowed path(s): (/tmp:/in:/etc) in /in/RW1rR on line 3 Warning: file_get_contents(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo): failed to open stream: Operation not permitted in /in/RW1rR on line 3 NULL
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/RW1rR on line 3 Warning: file_get_contents(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo): failed to open stream: No such file or directory in /in/RW1rR on line 3 NULL
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/RW1rR on line 3 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo) is not within the allowed path(s): (/tmp:/in) in /in/RW1rR on line 3 Warning: file_get_contents(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo): failed to open stream: Operation not permitted in /in/RW1rR on line 3 NULL
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/RW1rR on line 3 Warning: file_get_contents(https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/RW1rR on line 3 NULL
Output for hhvm-3.15.4
Warning: Failed to open https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo (Could not resolve host: www.alphavantage.co) in /in/RW1rR on line 3 NULL