3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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.0130.00718.93
8.3.50.0150.00322.18
8.3.40.0070.00719.05
8.3.30.0070.00718.90
8.3.20.0040.00420.54
8.3.10.0000.00823.86
8.3.00.0000.00819.63
8.2.180.0120.00616.75
8.2.170.0080.01222.96
8.2.160.0100.00720.60
8.2.150.0070.00724.18
8.2.140.0000.00824.66
8.2.130.0030.00619.51
8.2.120.0050.00226.35
8.2.110.0100.00019.45
8.2.100.0060.00617.63
8.2.90.0040.00419.48
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0040.00418.16
8.2.50.0080.00018.07
8.2.40.0090.00019.46
8.2.30.0040.00420.87
8.2.20.0060.00317.86
8.2.10.0030.00618.39
8.2.00.0040.00418.30
8.1.280.0140.00725.92
8.1.270.0060.00323.82
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0090.00021.03
8.1.230.0120.00017.42
8.1.220.0050.00317.93
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.89
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0000.00722.21
8.1.150.0050.00318.96
8.1.140.0060.00319.77
8.1.130.0000.00817.97
8.1.120.0030.00517.70
8.1.110.0040.00417.55
8.1.100.0040.00417.73
8.1.90.0040.00417.64
8.1.80.0000.00817.61
8.1.70.0070.00017.68
8.1.60.0030.00617.73
8.1.50.0060.00317.65
8.1.40.0040.00417.60
8.1.30.0040.00417.70
8.1.20.0030.00517.75
8.1.10.0080.00017.82
8.1.00.0060.00317.58
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0070.00018.63
8.0.270.0030.00517.39
8.0.260.0030.00617.40
8.0.250.0080.00017.08
8.0.240.0000.00817.21
8.0.230.0000.00717.20
8.0.220.0050.00517.11
8.0.210.0030.00317.11
8.0.200.0070.00017.19
8.0.190.0000.00817.19
8.0.180.0000.00717.16
8.0.170.0040.00417.18
8.0.160.0040.00417.11
8.0.150.0000.00717.07
8.0.140.0040.00417.09
8.0.130.0030.00313.71
8.0.120.0040.00417.27
8.0.110.0000.00817.08
8.0.100.0030.00617.35
8.0.90.0000.00817.08
8.0.80.0060.00917.22
8.0.70.0080.00017.26
8.0.60.0040.00417.21
8.0.50.0040.00417.21
8.0.30.0110.00917.31
8.0.20.0150.00417.43
8.0.10.0030.00517.18
8.0.00.0120.00617.13
7.4.330.0020.00217.16
7.4.320.0030.00316.73
7.4.300.0030.00316.71
7.4.290.0030.00316.75
7.4.280.0000.00816.63
7.4.270.0030.00316.59
7.4.260.0070.00016.61
7.4.250.0050.00316.72
7.4.240.0030.00516.82
7.4.230.0070.00016.63
7.4.220.0110.01616.86
7.4.210.0060.01016.77
7.4.200.0000.00716.93
7.4.160.0110.00416.50
7.4.150.0190.00017.40
7.4.140.0150.00617.86
7.4.130.0160.00516.81
7.4.120.0110.01116.75
7.4.110.0160.00316.91
7.4.100.0120.00616.80
7.4.90.0130.01316.60
7.4.80.0120.00619.39
7.4.70.0090.01516.79
7.4.60.0140.00716.73
7.4.50.0070.00716.84
7.4.40.0170.00316.61
7.4.30.0060.01316.59
7.4.00.0040.01415.35
7.3.330.0030.00313.63
7.3.320.0040.00313.50
7.3.310.0020.00516.67
7.3.300.0040.00416.60
7.3.290.0120.00716.58
7.3.280.0140.00916.58
7.3.270.0120.00617.40
7.3.260.0120.01216.94
7.3.250.0100.01016.59
7.3.240.0120.00716.61
7.3.230.0070.01316.73
7.3.210.0130.00316.77
7.3.200.0120.01316.45
7.3.190.0110.00916.51
7.3.180.0060.01216.54
7.3.170.0090.01316.71
7.3.160.0140.00316.85
7.3.120.0090.00915.08
7.3.110.0040.01514.75
7.3.100.0120.00315.24
7.3.90.0100.00315.11
7.3.80.0040.01514.78
7.3.70.0040.01114.75
7.3.60.0070.00315.11
7.3.50.0000.01114.91
7.3.40.0070.00414.85
7.3.30.0030.00614.88
7.3.20.0040.01116.80
7.3.10.0050.00516.90
7.3.00.0130.00317.11
7.2.330.0040.01616.55
7.2.320.0190.00616.56
7.2.310.0120.00616.60
7.2.300.0090.00917.00
7.2.290.0070.01116.71
7.2.250.0100.01115.29
7.2.240.0030.01715.07
7.2.230.0130.00715.08
7.2.220.0060.00315.34
7.2.210.0000.01715.17
7.2.200.0030.01315.33
7.2.190.0070.00714.97
7.2.180.0070.00715.39
7.2.170.0040.00814.96
7.2.60.0060.00617.03
7.2.00.0150.00519.75
7.1.330.0070.00715.96
7.1.320.0060.00616.25
7.1.310.0070.00716.07
7.1.300.0070.00416.09
7.1.290.0060.00615.94
7.1.280.0000.00916.12
7.1.270.0070.00315.82
7.1.260.0000.01316.06
7.1.200.0000.01216.06
7.1.100.0000.01118.38
7.1.70.0030.01217.53
7.1.60.0070.02019.36
7.1.50.0060.00617.20
7.1.00.0100.07022.81
7.0.200.0060.00316.86
7.0.60.0030.09320.25
7.0.50.0100.06718.23
7.0.40.0130.06720.54
7.0.30.0400.04020.55
7.0.20.0100.04720.51
7.0.10.0070.04320.50
7.0.00.0030.04020.46
5.6.280.0000.04021.41
5.6.210.0100.08020.89
5.6.200.0030.06718.74
5.6.190.0100.04321.04
5.6.180.0300.07021.05
5.6.170.0200.04320.89
5.6.160.0030.05320.88
5.6.150.0000.04718.38
5.6.140.0030.05318.57
5.6.130.0070.04018.65
5.6.120.0100.07721.36
5.6.110.0100.06321.41
5.6.100.0130.05021.43
5.6.90.0170.07021.48
5.6.80.0030.05720.72
5.5.350.0230.07720.81
5.5.340.0100.07718.20
5.5.330.0100.07720.84
5.5.320.0330.05320.64
5.5.310.0270.05720.60
5.5.300.0130.04318.37
5.5.290.0100.07318.31
5.5.280.0130.08021.00
5.5.270.0030.04021.03
5.5.260.0070.08721.00
5.5.250.0200.06720.89
5.5.240.0330.06720.57

preferences:
50.73 ms | 401 KiB | 5 Q