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.70.0130.01018.81
8.3.60.0120.00618.80
8.3.50.0190.00722.10
8.3.40.0090.00618.92
8.3.30.0130.00318.91
8.3.20.0070.00020.62
8.3.10.0040.00423.77
8.3.00.0060.00319.63
8.2.190.0140.00417.00
8.2.180.0090.00616.88
8.2.170.0100.00622.96
8.2.160.0070.00720.55
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0030.00617.63
8.2.120.0000.00826.35
8.2.110.0000.00922.51
8.2.100.0060.00618.00
8.2.90.0080.00019.48
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0030.00518.05
8.2.50.0040.00418.07
8.2.40.0040.00419.48
8.2.30.0050.00320.81
8.2.20.0030.00517.92
8.2.10.0080.00018.39
8.2.00.0040.00418.20
8.1.280.0110.01125.92
8.1.270.0100.00024.13
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00619.51
8.1.230.0120.00019.12
8.1.220.0040.00417.91
8.1.210.0050.00318.77
8.1.200.0040.00717.35
8.1.190.0040.00417.80
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0050.00322.19
8.1.150.0070.00019.14
8.1.140.0000.00819.83
8.1.130.0000.00717.70
8.1.120.0040.00417.69
8.1.110.0060.00617.68
8.1.100.0000.00817.57
8.1.90.0040.00417.58
8.1.80.0040.00417.61
8.1.70.0020.00517.68
8.1.60.0060.00317.64
8.1.50.0030.00517.67
8.1.40.0040.00417.66
8.1.30.0040.00417.89
8.1.20.0000.00817.86
8.1.10.0040.00417.66
8.1.00.0040.00417.61
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.77
8.0.270.0030.00317.52
8.0.260.0060.00317.05
8.0.250.0000.00717.23
8.0.240.0030.00517.11
8.0.230.0070.00017.26
8.0.220.0070.00317.21
8.0.210.0040.00417.12
8.0.200.0030.00317.30
8.0.190.0040.00417.12
8.0.180.0000.00717.30
8.0.170.0000.00817.30
8.0.160.0000.00717.02
8.0.150.0040.00416.95
8.0.140.0000.00717.11
8.0.130.0030.00313.71
8.0.120.0030.00617.17
8.0.110.0040.00417.26
8.0.100.0070.00017.21
8.0.90.0040.00417.29
8.0.80.0170.00017.21
8.0.70.0030.00617.22
8.0.60.0040.00417.17
8.0.50.0040.00417.30
8.0.30.0050.01717.33
8.0.20.0150.00717.40
8.0.10.0000.00817.28
8.0.00.0080.01017.17
7.4.330.0060.00016.98
7.4.320.0070.00016.71
7.4.300.0030.00316.61
7.4.290.0000.00816.77
7.4.280.0000.00816.65
7.4.270.0000.00716.64
7.4.260.0000.00816.64
7.4.250.0040.00416.76
7.4.240.0030.00516.77
7.4.230.0030.00316.55
7.4.220.0070.01516.86
7.4.210.0120.00316.77
7.4.200.0000.00716.55
7.4.160.0100.00616.87
7.4.150.0070.02017.40
7.4.140.0160.00417.86
7.4.130.0130.00716.75
7.4.120.0120.00816.79
7.4.110.0060.01216.80
7.4.100.0130.01016.64
7.4.90.0200.00716.85
7.4.80.0090.00919.39
7.4.70.0110.00816.73
7.4.60.0070.01116.75
7.4.50.0070.01016.45
7.4.40.0060.01516.50
7.4.30.0150.00316.74
7.4.00.0100.00615.18
7.3.330.0000.00513.52
7.3.320.0000.00713.47
7.3.310.0020.00516.58
7.3.300.0000.00716.74
7.3.290.0080.01016.69
7.3.280.0100.00816.69
7.3.270.0090.00917.40
7.3.260.0070.01016.66
7.3.250.0110.00716.68
7.3.240.0120.00816.64
7.3.230.0060.01216.77
7.3.210.0090.00916.73
7.3.200.0120.00816.75
7.3.190.0120.00416.85
7.3.180.0040.01416.68
7.3.170.0040.01316.79
7.3.160.0160.00316.83
7.3.120.0070.01115.03
7.3.110.0110.00715.34
7.3.100.0060.00915.30
7.3.90.0030.01315.38
7.3.80.0000.01314.92
7.3.70.0000.00915.18
7.3.60.0060.00915.21
7.3.50.0040.00915.17
7.3.40.0110.00314.89
7.3.30.0040.00415.11
7.3.20.0030.00616.96
7.3.10.0040.00816.96
7.3.00.0030.00717.13
7.2.330.0080.01116.71
7.2.320.0110.00817.14
7.2.310.0030.01416.70
7.2.300.0100.01016.93
7.2.290.0060.01216.67
7.2.240.0100.01014.84
7.2.230.0070.01115.50
7.2.220.0000.01215.27
7.2.210.0090.00915.01
7.2.200.0040.00815.24
7.2.190.0000.01515.27
7.2.180.0030.01415.36
7.2.170.0070.00715.13
7.2.160.0030.00615.19
7.2.150.0030.00917.21
7.2.140.0060.00916.93
7.2.130.0000.01517.25
7.2.120.0000.00917.25
7.2.110.0100.00717.22
7.2.100.0000.01517.14
7.2.90.0000.01916.97
7.2.80.0130.00617.25
7.2.70.0070.01016.86
7.2.60.0080.00917.13
7.2.50.0070.00417.07
7.2.40.0070.00717.02
7.2.30.0060.00617.31
7.2.20.0060.00617.28
7.2.10.0060.00917.26
7.2.00.0060.00918.38
7.1.330.0030.01716.14
7.1.320.0080.00416.01
7.1.310.0100.00316.13
7.1.300.0000.01315.86
7.1.290.0030.00515.83
7.1.280.0050.00516.03
7.1.270.0030.01016.04
7.1.260.0030.00716.20
7.1.250.0040.00816.05
7.1.200.0060.00616.17
7.1.100.0060.00318.10
7.1.70.0000.00817.30
7.1.60.0110.01419.36
7.1.50.0110.01417.03
7.1.00.0030.07722.76
7.0.200.0030.01016.78
7.0.60.0100.05320.19
7.0.50.0030.04018.18
7.0.40.0100.08720.57
7.0.30.0200.04320.43
7.0.20.0270.07720.50
7.0.10.0070.08020.48
7.0.00.0270.03020.47
5.6.280.0070.06021.38
5.6.210.0170.07320.86
5.6.200.0100.08318.47
5.6.190.0070.05320.97
5.6.180.0270.05321.04
5.6.170.0300.07720.82
5.6.160.0030.08720.95
5.6.150.0130.07718.57
5.6.140.0070.05718.41
5.6.130.0100.04318.55
5.6.120.0070.05021.34
5.6.110.0100.04021.48
5.6.100.0070.05021.50
5.6.90.0070.09021.52
5.6.80.0200.07020.73
5.5.350.0400.06720.79
5.5.340.0100.07018.53
5.5.330.0070.05020.95
5.5.320.0370.05720.66
5.5.310.0370.07020.62
5.5.300.0070.05718.37
5.5.290.0130.08018.29
5.5.280.0200.05321.24
5.5.270.0070.04021.14
5.5.260.0230.05720.99
5.5.250.0070.03721.00
5.5.240.0370.06320.59

preferences:
82.11 ms | 401 KiB | 5 Q