3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonfile = file_get_contents('https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=15min&outputsize=full&apikey=demo'); $jsonarray = { ["Meta Data"]=> object(stdClass)#2 (5) { ["1. Information"]=> string(49) "Daily Prices (open, high, low, close) and Volumes" ["2. Symbol"]=> string(5) "AAWVX" ["3. Last Refreshed"]=> string(10) "2017-06-30" ["4. Output Size"]=> string(9) "Full size" ["5. Time Zone"]=> string(10) "US/Eastern" } ["Time Series (Daily)"]=> object(stdClass)#3 (105) { ["2017-06-30"]=> object(stdClass)#4 (5) { ["1. open"]=> string(7) "10.5100" ["2. high"]=> string(7) "10.5100" ["3. low"]=> string(7) "10.5100" ["4. close"]=> string(7) "10.5100" ["5. volume"]=> string(1) "0" } ["2017-06-29"]=> object(stdClass)#5 (5) { ["1. open"]=> string(7) "10.4800" ["2. high"]=> string(7) "10.4800" ["3. low"]=> string(7) "10.4800" ["4. close"]=> string(7) "10.4800" ["5. volume"]=> string(1) "0" } ["2017-06-28"]=> object(stdClass)#6 (5) { ["1. open"]=> string(7) "10.5600" ["2. high"]=> string(7) "10.5600" ["3. low"]=> string(7) "10.5600" ["4. close"]=> string(7) "10.5600" ["5. volume"]=> string(1) "0" }; echo $jsonarray['Meta Data']; var_dump($jsonarray);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.60.0370.01333.21
7.1.50.0470.01032.86
7.1.40.0370.01032.63
7.1.30.0400.00732.52
7.1.20.0270.02332.48
7.1.10.0230.01314.38
7.1.00.0230.01314.61
7.0.200.0270.01014.59
7.0.190.0230.01714.59
7.0.180.0230.01014.44
7.0.170.0270.01014.10
7.0.160.0370.00314.10
7.0.150.0300.00714.27
7.0.140.0300.00714.43
7.0.130.0300.00714.52
7.0.120.0230.01314.49
7.0.110.0270.01014.16
7.0.100.0270.00714.01
7.0.90.0700.00714.16
7.0.80.0370.00314.19
7.0.70.0230.01314.13
7.0.60.0330.00714.24
7.0.50.0300.00714.50
7.0.40.0300.00714.71
7.0.30.0270.01014.41
7.0.20.0300.00714.50
7.0.10.0270.01014.36
7.0.00.0300.01014.59

preferences:
141.93 ms | 1394 KiB | 7 Q