3v4l.org

run code in 300+ PHP versions simultaneously
<?php { //need the js code here... $json_string = file_get_contents("http://api.wunderground.com/api/a4ae759739c92427/forecast/q/UK/Newcastle.json"); $parsed_json = json_decode($json_string); for($i = 0; $i <= 1; $i++) { $day = $parsed_json->{'forecast'}->{'txt_forecast'}->{'forecastday'}->{i}; return $day->{'title'} . "<br>" . $day->{'fcttext_metric'} . "<br><br>"; } }

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.3.60.0120.00916.88
8.3.50.0120.01022.05
8.3.40.0070.01119.22
8.3.30.0180.00019.05
8.3.20.0040.00420.52
8.3.10.0070.00023.89
8.3.00.0050.00319.63
8.2.180.0060.00917.25
8.2.170.0100.01022.96
8.2.160.0100.00320.51
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00717.74
8.2.120.0080.00026.35
8.2.110.0000.00919.54
8.2.100.0120.00017.75
8.2.90.0080.00019.48
8.2.80.0030.00517.97
8.2.70.0040.00417.87
8.2.60.0000.00818.16
8.2.50.0050.00318.07
8.2.40.0080.00019.53
8.2.30.0050.00220.82
8.2.20.0000.00917.94
8.2.10.0000.00918.30
8.2.00.0050.00218.20
8.1.280.0090.00925.92
8.1.270.0070.00324.04
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0100.00021.12
8.1.230.0080.00417.48
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0090.00017.50
8.1.190.0050.00317.83
8.1.180.0030.00718.10
8.1.170.0030.00518.90
8.1.160.0000.00722.17
8.1.150.0040.00419.08
8.1.140.0000.00919.69
8.1.130.0040.00417.94
8.1.120.0040.00417.59
8.1.110.0000.01117.55
8.1.100.0040.00417.64
8.1.90.0070.00017.66
8.1.80.0040.00417.68
8.1.70.0040.00417.55
8.1.60.0030.00517.61
8.1.50.0060.00317.65
8.1.40.0000.00917.65
8.1.30.0040.00417.73
8.1.20.0000.00817.81
8.1.10.0050.00317.73
8.1.00.0080.00417.64
8.0.300.0060.00318.77
8.0.290.0070.00017.00
8.0.280.0030.00318.59
8.0.270.0050.00217.51
8.0.260.0000.00617.50
8.0.250.0030.00317.20
8.0.240.0050.00317.08
8.0.230.0000.00717.22
8.0.220.0070.00317.13
8.0.210.0040.00417.13
8.0.200.0000.00717.22
8.0.190.0060.00317.22
8.0.180.0040.00417.27
8.0.170.0040.00417.14
8.0.160.0000.00717.11
8.0.150.0040.00417.09
8.0.140.0040.00417.05
8.0.130.0000.00613.79
8.0.120.0030.00617.21
8.0.110.0060.00317.22
8.0.100.0050.00317.16
8.0.90.0040.00417.27
8.0.80.0060.00917.21
8.0.70.0000.00917.37
8.0.60.0080.00017.25
8.0.50.0060.00317.16
8.0.30.0040.01717.29
8.0.20.0120.00917.40
8.0.10.0040.00417.32
8.0.00.0080.01117.11
7.4.330.0050.00017.11
7.4.320.0030.00316.64
7.4.300.0000.00716.65
7.4.290.0070.00016.68
7.4.280.0040.00416.59
7.4.270.0040.00416.63
7.4.260.0000.00716.70
7.4.250.0040.00416.77
7.4.240.0040.00416.83
7.4.230.0070.00016.72
7.4.220.0090.00916.94
7.4.210.0040.01216.77
7.4.200.0000.00716.71
7.4.160.0130.00316.66
7.4.150.0130.00717.40
7.4.140.0050.02317.86
7.4.130.0110.00916.77
7.4.120.0060.01316.81
7.4.110.0030.01516.82
7.4.100.0060.01216.81
7.4.90.0170.01016.67
7.4.80.0100.01319.39
7.4.70.0100.00716.74
7.4.60.0080.01216.85
7.4.50.0100.00716.67
7.4.40.0170.00616.70
7.4.30.0090.01016.86
7.4.00.0080.00915.13
7.3.330.0060.00013.53
7.3.320.0080.00013.63
7.3.310.0000.00716.55
7.3.300.0030.00316.57
7.3.290.0080.00716.65
7.3.280.0120.00616.54
7.3.270.0150.00517.40
7.3.260.0190.00316.78
7.3.250.0130.00416.73
7.3.240.0030.01616.74
7.3.230.0000.01816.80
7.3.210.0100.00716.58
7.3.200.0100.01316.58
7.3.190.0150.00916.66
7.3.180.0100.00716.71
7.3.170.0070.01616.57
7.3.160.0120.00616.74
7.3.120.0090.00615.03
7.3.110.0100.01015.18
7.3.100.0070.01015.14
7.3.90.0090.00615.10
7.3.80.0090.00615.25
7.3.70.0070.01115.12
7.3.60.0030.01315.06
7.3.50.0040.00715.06
7.3.40.0040.00815.15
7.3.30.0110.00414.87
7.3.20.0040.01117.00
7.3.10.0060.00617.12
7.3.00.0030.01116.67
7.2.330.0000.02016.92
7.2.320.0120.00916.57
7.2.310.0060.01216.96
7.2.300.0100.00716.63
7.2.290.0170.00316.72
7.2.250.0070.01115.49
7.2.240.0090.01015.33
7.2.230.0030.01715.10
7.2.220.0070.00415.25
7.2.210.0040.01215.29
7.2.200.0070.00614.95
7.2.190.0000.01515.24
7.2.180.0030.01315.23
7.2.170.0100.00714.98
7.2.60.0140.00017.28
7.2.00.0080.00819.59
7.1.330.0030.01016.09
7.1.320.0070.00415.96
7.1.310.0070.00716.13
7.1.300.0000.01515.99
7.1.290.0040.00816.02
7.1.280.0060.00915.94
7.1.270.0060.00916.18
7.1.260.0110.00315.79
7.1.200.0000.01015.80
7.1.100.0060.01018.55
7.1.70.0030.00617.52
7.1.60.0170.00719.36
7.1.50.0110.00717.43
7.1.00.0000.08022.83
7.0.200.0030.00716.77
7.0.60.0070.08020.32
7.0.50.0100.05018.18
7.0.40.0070.05320.59
7.0.30.0270.04720.43
7.0.20.0170.04320.49
7.0.10.0100.05720.54
7.0.00.0170.03020.46
5.6.280.0030.06021.48
5.6.210.0130.05720.88
5.6.200.0000.04718.51
5.6.190.0070.04321.03
5.6.180.0270.08321.07
5.6.170.0230.04720.79
5.6.160.0030.07320.82
5.6.150.0100.05018.51
5.6.140.0070.07718.57
5.6.130.0030.06318.57
5.6.120.0100.05021.29
5.6.110.0070.08321.28
5.6.100.0170.07021.38
5.6.90.0100.08021.24
5.6.80.0130.07020.86
5.5.350.0230.08320.82
5.5.340.0070.05318.28
5.5.330.0070.08020.88
5.5.320.0270.07720.59
5.5.310.0200.04320.66
5.5.300.0100.05018.32
5.5.290.0130.04318.36
5.5.280.0100.08321.03
5.5.270.0070.04321.08
5.5.260.0130.07721.18
5.5.250.0100.04321.07
5.5.240.0230.06720.67

preferences:
53.11 ms | 401 KiB | 5 Q