3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "area_metadata": [ { "name": "Ang Mo Kio", "label_location": { "latitude": 1.375, "longitude": 103.839 } }, { "name": "Bedok", "label_location": { "latitude": 1.321, "longitude": 103.924 } }, { "name": "Bishan", "label_location": { "latitude": 1.350772, "longitude": 103.839 } }, { "name": "Boon Lay", "label_location": { "latitude": 1.304, "longitude": 103.701 } }, { "name": "Bukit Batok", "label_location": { "latitude": 1.353, "longitude": 103.754 } }, { "name": "Bukit Merah", "label_location": { "latitude": 1.277, "longitude": 103.819 } }, { "name": "Bukit Panjang", "label_location": { "latitude": 1.362, "longitude": 103.77195 } }, { "name": "Bukit Timah", "label_location": { "latitude": 1.325, "longitude": 103.791 } }, { "name": "Central Water Catchment", "label_location": { "latitude": 1.38, "longitude": 103.805 } }, { "name": "Changi", "label_location": { "latitude": 1.357, "longitude": 103.987 } }, { "name": "Choa Chu Kang", "label_location": { "latitude": 1.377, "longitude": 103.745 } }, { "name": "Clementi", "label_location": { "latitude": 1.315, "longitude": 103.76 } }, { "name": "City", "label_location": { "latitude": 1.292, "longitude": 103.844 } }, { "name": "Geylang", "label_location": { "latitude": 1.318, "longitude": 103.884 } }, { "name": "Hougang", "label_location": { "latitude": 1.361218, "longitude": 103.886 } }, { "name": "Jalan Bahar", "label_location": { "latitude": 1.347, "longitude": 103.67 } }, { "name": "Jurong East", "label_location": { "latitude": 1.326, "longitude": 103.737 } }, { "name": "Jurong Island", "label_location": { "latitude": 1.266, "longitude": 103.699 } }, { "name": "Jurong West", "label_location": { "latitude": 1.34039, "longitude": 103.705 } }, { "name": "Kallang", "label_location": { "latitude": 1.312, "longitude": 103.862 } }, { "name": "Lim Chu Kang", "label_location": { "latitude": 1.423, "longitude": 103.717332 } }, { "name": "Mandai", "label_location": { "latitude": 1.419, "longitude": 103.812 } }, { "name": "Marine Parade", "label_location": { "latitude": 1.297, "longitude": 103.891 } }, { "name": "Novena", "label_location": { "latitude": 1.327, "longitude": 103.826 } }, { "name": "Pasir Ris", "label_location": { "latitude": 1.37, "longitude": 103.948 } }, { "name": "Paya Lebar", "label_location": { "latitude": 1.358, "longitude": 103.914 } }, { "name": "Pioneer", "label_location": { "latitude": 1.315, "longitude": 103.675 } }, { "name": "Pulau Tekong", "label_location": { "latitude": 1.403, "longitude": 104.053 } }, { "name": "Pulau Ubin", "label_location": { "latitude": 1.404, "longitude": 103.96 } }, { "name": "Punggol", "label_location": { "latitude": 1.401, "longitude": 103.904 } }, { "name": "Queenstown", "label_location": { "latitude": 1.291, "longitude": 103.78576 } }, { "name": "Seletar", "label_location": { "latitude": 1.404, "longitude": 103.869 } }, { "name": "Sembawang", "label_location": { "latitude": 1.445, "longitude": 103.818495 } }, { "name": "Sengkang", "label_location": { "latitude": 1.384, "longitude": 103.891443 } }, { "name": "Sentosa", "label_location": { "latitude": 1.243, "longitude": 103.832 } }, { "name": "Serangoon", "label_location": { "latitude": 1.357, "longitude": 103.865 } }, { "name": "Southern Islands", "label_location": { "latitude": 1.208, "longitude": 103.842 } }, { "name": "Sungei Kadut", "label_location": { "latitude": 1.413, "longitude": 103.756 } }, { "name": "Tampines", "label_location": { "latitude": 1.345, "longitude": 103.944 } }, { "name": "Tanglin", "label_location": { "latitude": 1.308, "longitude": 103.813 } }, { "name": "Tengah", "label_location": { "latitude": 1.374, "longitude": 103.715 } }, { "name": "Toa Payoh", "label_location": { "latitude": 1.334304, "longitude": 103.856327 } }, { "name": "Tuas", "label_location": { "latitude": 1.294947, "longitude": 103.635 } }, { "name": "Western Islands", "label_location": { "latitude": 1.205926, "longitude": 103.746 } }, { "name": "Western Water Catchment", "label_location": { "latitude": 1.405, "longitude": 103.689 } }, { "name": "Woodlands", "label_location": { "latitude": 1.432, "longitude": 103.786528 } }, { "name": "Yishun", "label_location": { "latitude": 1.418, "longitude": 103.839 } } ], "items": [ { "update_timestamp": "2017-05-02T09:21:18+08:00", "timestamp": "2017-05-02T09:07:00+08:00", "valid_period": { "start": "2017-05-02T09:00:00+08:00", "end": "2017-05-02T11:00:00+08:00" }, "forecasts": [ { "area": "Ang Mo Kio", "forecast": "Partly Cloudy (Day)" }, { "area": "Bedok", "forecast": "Partly Cloudy (Day)" }, { "area": "Bishan", "forecast": "Partly Cloudy (Day)" }, { "area": "Boon Lay", "forecast": "Thundery Showers" }, { "area": "Bukit Batok", "forecast": "Light Showers" }, { "area": "Bukit Merah", "forecast": "Showers" }, { "area": "Bukit Panjang", "forecast": "Partly Cloudy (Day)" }, { "area": "Bukit Timah", "forecast": "Light Showers" }, { "area": "Central Water Catchment", "forecast": "Partly Cloudy (Day)" }, { "area": "Changi", "forecast": "Partly Cloudy (Day)" }, { "area": "Choa Chu Kang", "forecast": "Light Showers" }, { "area": "Clementi", "forecast": "Thundery Showers" }, { "area": "City", "forecast": "Partly Cloudy (Day)" }, { "area": "Geylang", "forecast": "Partly Cloudy (Day)" }, { "area": "Hougang", "forecast": "Partly Cloudy (Day)" }, { "area": "Jalan Bahar", "forecast": "Thundery Showers" }, { "area": "Jurong East", "forecast": "Thundery Showers" }, { "area": "Jurong Island", "forecast": "Thundery Showers" }, { "area": "Jurong West", "forecast": "Thundery Showers" }, { "area": "Kallang", "forecast": "Partly Cloudy (Day)" }, { "area": "Lim Chu Kang", "forecast": "Partly Cloudy (Day)" }, { "area": "Mandai", "forecast": "Partly Cloudy (Day)" }, { "area": "Marine Parade", "forecast": "Partly Cloudy (Day)" }, { "area": "Novena", "forecast": "Partly Cloudy (Day)" }, { "area": "Pasir Ris", "forecast": "Partly Cloudy (Day)" }, { "area": "Paya Lebar", "forecast": "Partly Cloudy (Day)" }, { "area": "Pioneer", "forecast": "Thundery Showers" }, { "area": "Pulau Tekong", "forecast": "Partly Cloudy (Day)" }, { "area": "Pulau Ubin", "forecast": "Partly Cloudy (Day)" }, { "area": "Punggol", "forecast": "Partly Cloudy (Day)" }, { "area": "Queenstown", "forecast": "Thundery Showers" }, { "area": "Seletar", "forecast": "Partly Cloudy (Day)" }, { "area": "Sembawang", "forecast": "Partly Cloudy (Day)" }, { "area": "Sengkang", "forecast": "Partly Cloudy (Day)" }, { "area": "Sentosa", "forecast": "Showers" }, { "area": "Serangoon", "forecast": "Partly Cloudy (Day)" }, { "area": "Southern Islands", "forecast": "Showers" }, { "area": "Sungei Kadut", "forecast": "Partly Cloudy (Day)" }, { "area": "Tampines", "forecast": "Partly Cloudy (Day)" }, { "area": "Tanglin", "forecast": "Partly Cloudy (Day)" }, { "area": "Tengah", "forecast": "Showers" }, { "area": "Toa Payoh", "forecast": "Partly Cloudy (Day)" }, { "area": "Tuas", "forecast": "Thundery Showers" }, { "area": "Western Islands", "forecast": "Thundery Showers" }, { "area": "Western Water Catchment", "forecast": "Showers" }, { "area": "Woodlands", "forecast": "Partly Cloudy (Day)" }, { "area": "Yishun", "forecast": "Partly Cloudy (Day)" } ] } ], "api_info": { "status": "healthy" } }'; $data = json_decode($json, true); echo $data['items'][0]['forecasts'][0]['area']; ?>

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)
8.4.140.0120.00917.51
8.4.130.0130.00817.88
8.4.120.0150.00620.51
8.4.110.0100.01022.67
8.4.100.0050.00417.77
8.4.90.0110.00917.77
8.4.80.0110.01019.67
8.4.70.0090.00817.78
8.4.60.0080.01417.97
8.4.50.0080.00817.91
8.4.40.0090.00017.86
8.4.30.0040.01219.41
8.4.20.0100.01319.60
8.4.10.0170.00317.62
8.3.270.0140.00616.63
8.3.260.0130.00816.51
8.3.250.0120.00818.76
8.3.240.0110.00816.50
8.3.230.0090.01016.61
8.3.220.0080.01017.14
8.3.210.0130.00616.62
8.3.200.0120.00816.42
8.3.190.0120.00716.59
8.3.180.0030.00416.56
8.3.170.0070.00716.48
8.3.160.0000.00818.16
8.3.150.0150.00320.62
8.3.140.0080.00816.54
8.3.130.0060.00318.36
8.3.120.0030.00520.75
8.3.110.0060.00320.94
8.3.100.0040.01118.37
8.3.90.0060.00326.77
8.3.80.0040.00718.31
8.3.70.0100.01016.50
8.3.60.0060.01216.75
8.3.50.0090.00618.17
8.3.40.0150.00018.76
8.3.30.0120.00318.80
8.3.20.0080.00021.86
8.3.10.0030.00522.02
8.3.00.0080.00019.38
8.2.290.0080.01020.56
8.2.280.0040.00620.26
8.2.270.0070.01118.79
8.2.260.0110.01119.26
8.2.250.0060.00316.81
8.2.240.0030.00618.83
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0030.00618.42
8.2.190.0090.00618.16
8.2.180.0180.00316.50
8.2.170.0120.00922.96
8.2.160.0110.00420.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.30
8.2.120.0040.00426.35
8.2.110.0130.01020.90
8.2.100.0040.00717.78
8.2.90.0030.00519.38
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00420.61
8.2.30.0030.00519.49
8.2.20.0000.00718.05
8.2.10.0000.00718.11
8.2.00.0000.00718.01
8.1.330.0100.00816.70
8.1.320.0130.00615.84
8.1.310.0040.01116.79
8.1.300.0050.00520.20
8.1.290.0040.00418.88
8.1.280.0070.01325.92
8.1.270.0080.00020.64
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0120.00017.95
8.1.220.0050.00317.78
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0040.00418.71
8.1.160.0040.00418.95
8.1.150.0030.00618.93
8.1.140.0000.00819.59
8.1.130.0030.00318.80
8.1.120.0000.00717.43
8.1.110.0050.00317.44
8.1.100.0050.00217.50
8.1.90.0040.00417.54
8.1.80.0040.00417.48
8.1.70.0030.00317.51
8.1.60.0080.00017.48
8.1.50.0000.00817.49
8.1.40.0080.00017.51
8.1.30.0060.00317.67
8.1.20.0080.00017.55
8.1.10.0040.00417.51
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0030.00517.00
8.0.280.0040.00418.48
8.0.270.0070.00017.35
8.0.260.0040.00417.26
8.0.250.0030.00317.02
8.0.240.0000.00717.03
8.0.230.0000.00716.87
8.0.220.0070.00016.84
8.0.210.0040.00416.84
8.0.200.0070.00016.93
8.0.190.0090.00316.98
8.0.180.0070.00016.96
8.0.170.0000.00816.93
8.0.160.0040.00416.77
8.0.150.0070.00016.71
8.0.140.0040.00416.76
8.0.130.0000.00513.35
8.0.120.0280.00413.31
8.0.110.0170.00413.76
8.0.100.0170.00213.62
8.0.90.0240.00213.44
8.0.80.1910.00713.87
8.0.70.0160.00514.25
8.0.60.0140.00314.10
8.0.50.0130.00314.07
8.0.30.0280.00915.37
8.0.20.0210.00915.81
8.0.10.0660.00313.43
8.0.00.0420.00814.30
7.4.330.0050.00015.55
7.4.320.0000.00716.49
7.4.300.0030.00316.63
7.4.290.0070.00016.61
7.4.280.0000.00816.58
7.4.270.0070.00016.57
7.4.260.0000.00716.53
7.4.250.0080.00214.94
7.4.240.0070.00414.89
7.4.230.0090.00314.96
7.4.220.0050.00414.91
7.4.210.0080.00615.42
7.4.200.0070.00314.82
7.4.190.0090.00013.33
7.4.180.0050.00913.33
7.4.160.0140.00515.63
7.4.150.0180.00515.67
7.4.140.0130.00816.61
7.4.130.0120.00815.34
7.4.120.0150.00915.84
7.4.110.0120.00915.34
7.4.100.0150.00815.50
7.4.90.0140.00615.36
7.4.80.0140.00816.35
7.4.70.0160.00415.35
7.4.60.0110.01015.34
7.4.50.0110.00715.37
7.4.40.0100.00815.33
7.4.30.0100.00915.43
7.4.20.0130.00614.78
7.4.10.0130.00815.33
7.4.00.0080.01015.24
7.3.330.0050.00013.15
7.3.320.0000.00513.23
7.3.310.0030.00714.58
7.3.300.0060.00514.69
7.3.290.0070.00514.76
7.3.280.0100.00815.91
7.3.270.0150.00715.58
7.3.260.0150.00515.66
7.3.250.0100.01015.72
7.3.240.0100.01115.59
7.3.230.0110.00715.19
7.3.220.0160.00614.61
7.3.210.0130.00615.15
7.3.200.0090.00915.24
7.3.190.0140.00515.21
7.3.180.0150.00515.23
7.3.170.0140.00515.13
7.3.160.0140.00515.16
7.3.150.0090.01014.47
7.3.140.0170.00514.50
7.3.130.0100.00815.18
7.3.120.0130.00715.20
7.3.110.0130.00615.07
7.3.100.0110.00915.00
7.3.90.0100.00815.20
7.3.80.0120.00715.10
7.3.70.0130.00515.24
7.3.60.0090.00715.18
7.3.50.0080.00815.20
7.3.40.0090.00615.22
7.3.30.0110.00515.20
7.3.20.0120.00716.11
7.3.10.0120.00716.00
7.3.00.0120.00515.96
7.2.340.0190.00614.68
7.2.330.0120.00815.35
7.2.320.0120.01015.37
7.2.310.0120.00715.31
7.2.300.0080.01415.34
7.2.290.0140.00515.42
7.2.280.0150.00614.67
7.2.270.0200.00114.62
7.2.260.0110.01015.22
7.2.250.0160.00715.24
7.2.240.0080.01215.32
7.2.230.0120.00815.22
7.2.220.0130.00815.16
7.2.210.0080.00915.21
7.2.200.0090.00815.26
7.2.190.0110.00715.21
7.2.180.0090.00915.27
7.2.170.0120.00615.28
7.2.160.0110.01015.40
7.2.150.0110.00916.23
7.2.140.0110.01016.34
7.2.130.0110.00816.35
7.2.120.0110.00916.27
7.2.110.0110.00616.27
7.2.100.0120.00416.25
7.2.90.0090.00916.22
7.2.80.0080.00816.20
7.2.70.0160.00416.29
7.2.60.0110.00516.29
7.2.50.0120.00616.18
7.2.40.0120.00516.36
7.2.30.0100.00616.23
7.2.20.0110.00616.25
7.2.10.0080.00716.22
7.2.00.0110.00816.18
7.1.330.0120.00715.64
7.1.320.0110.00615.36
7.1.310.0090.00815.31
7.1.300.0090.00715.29
7.1.290.0100.00715.25
7.1.280.0080.00815.27
7.1.270.0120.00715.29
7.1.260.0100.00615.31
7.1.250.0100.00715.25
7.1.240.0110.00715.22
7.1.230.0080.00915.13
7.1.220.0080.01015.27
7.1.210.0090.01015.20
7.1.200.0150.00315.38
7.1.190.0090.01015.24
7.1.180.0060.01015.13
7.1.170.0100.00615.10
7.1.160.0080.00815.19
7.1.150.0110.00615.11
7.1.140.0100.00915.20
7.1.130.0090.00615.10
7.1.120.0120.00615.13
7.1.110.0130.00415.24
7.1.100.0080.01015.10
7.1.90.0090.00715.14
7.1.80.0090.00715.24
7.1.70.0090.00715.54
7.1.60.0100.00815.64
7.1.50.0100.00715.53
7.1.40.0080.00715.48
7.1.30.0070.00815.47
7.1.20.0090.00615.46
7.1.10.0060.00815.43
7.1.00.0090.00715.47
7.0.330.0100.00714.13
7.0.320.0080.00914.14
7.0.310.0100.00814.16
7.0.300.0100.00614.23
7.0.290.0120.00514.16
7.0.280.0080.00814.07
7.0.270.0090.00914.15
7.0.260.0080.01214.10
7.0.250.0120.00714.29
7.0.240.0100.00714.22
7.0.230.0110.00614.25
7.0.220.0110.00614.31
7.0.210.0110.00614.27
7.0.200.0090.00714.77
7.0.190.0110.00514.88
7.0.180.0110.00414.70
7.0.170.0100.00614.81
7.0.160.0100.00714.71
7.0.150.0070.00714.72
7.0.140.0100.00614.69
7.0.130.0070.00814.87
7.0.120.0050.01014.83
7.0.110.0080.00914.80
7.0.100.0090.00814.75
7.0.90.0100.00414.60
7.0.80.0120.00514.70
7.0.70.0090.00814.76
7.0.60.0100.00614.69
7.0.50.0080.00814.60
7.0.40.0100.00514.33
7.0.30.0100.00514.30
7.0.20.0070.00914.21
7.0.10.0100.00414.28
7.0.00.0120.00514.19
5.6.400.0100.00814.32
5.6.390.0130.00714.24
5.6.380.0100.00814.19
5.6.370.0120.00914.25
5.6.360.0150.00314.27
5.6.350.0170.00614.22
5.6.340.0120.00614.22
5.6.330.0130.00714.15
5.6.320.0090.01114.19
5.6.310.0150.00814.23
5.6.300.0150.00414.07
5.6.290.0200.00314.27
5.6.280.0120.01014.20
5.6.270.0120.00914.27
5.6.260.0110.00814.24
5.6.250.0090.01114.09
5.6.240.0120.00714.19
5.6.230.0150.00414.17
5.6.220.0120.00614.28
5.6.210.0120.00614.14
5.6.200.0100.00914.22
5.6.190.0080.01214.20
5.6.180.0150.00414.29
5.6.170.0090.00914.42
5.6.160.0160.00414.28
5.6.150.0150.00814.40
5.6.140.0160.00714.32
5.6.130.0160.00414.20
5.6.120.0150.00314.30
5.6.110.0140.00414.32
5.6.100.0120.00714.19
5.6.90.0100.00814.26
5.6.80.0140.00314.20
5.6.70.0140.00314.38
5.6.60.0110.00614.37
5.6.50.0130.00514.08
5.6.40.0040.01314.08
5.6.30.0120.00914.17
5.6.20.0100.00814.12
5.6.10.0160.00414.04
5.6.00.0150.00314.04

preferences:
115.29 ms | 403 KiB | 5 Q