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}; }

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.0050.01017.13
8.3.50.0060.00918.14
8.3.40.0000.01518.97
8.3.30.0040.01119.22
8.3.20.0050.00320.63
8.3.10.0040.00423.91
8.3.00.0000.00819.63
8.2.180.0120.00317.13
8.2.170.0030.01322.96
8.2.160.0100.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00419.47
8.2.120.0050.00226.35
8.2.110.0090.00021.08
8.2.100.0040.00817.88
8.2.90.0040.00419.34
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0000.00819.50
8.2.30.0040.00420.71
8.2.20.0040.00417.84
8.2.10.0040.00418.29
8.2.00.0070.00018.32
8.1.280.0140.00725.92
8.1.270.0080.00024.21
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0000.00922.37
8.1.230.0090.00317.73
8.1.220.0000.00817.92
8.1.210.0000.00818.77
8.1.200.0070.00317.63
8.1.190.0030.00517.76
8.1.180.0040.00418.10
8.1.170.0080.00018.79
8.1.160.0040.00422.20
8.1.150.0000.00819.11
8.1.140.0040.00419.70
8.1.130.0040.00417.87
8.1.120.0050.00217.63
8.1.110.0030.00717.66
8.1.100.0030.00517.55
8.1.90.0070.00017.60
8.1.80.0000.00717.58
8.1.70.0000.00717.43
8.1.60.0040.00417.72
8.1.50.0000.00917.65
8.1.40.0040.00417.63
8.1.30.0060.00317.78
8.1.20.0080.00017.90
8.1.10.0030.00617.84
8.1.00.0000.00817.63
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0040.00418.72
8.0.270.0000.00717.41
8.0.260.0000.01017.43
8.0.250.0040.00417.22
8.0.240.0000.00817.12
8.0.230.0050.00217.22
8.0.220.0040.00417.15
8.0.210.0070.00017.26
8.0.200.0030.00317.21
8.0.190.0000.00817.17
8.0.180.0000.00817.12
8.0.170.0030.00617.21
8.0.160.0040.00417.20
8.0.150.0040.00417.09
8.0.140.0000.00717.08
8.0.130.0060.00013.71
8.0.120.0040.00417.11
8.0.110.0030.00617.19
8.0.100.0000.00717.23
8.0.90.0080.00017.13
8.0.80.0080.00817.25
8.0.70.0040.00417.25
8.0.60.0040.00417.25
8.0.50.0030.00517.30
8.0.30.0100.01017.33
8.0.20.0140.00617.50
8.0.10.0050.00317.43
8.0.00.0080.01016.98
7.4.330.0050.00017.14
7.4.320.0030.00316.61
7.4.300.0000.00716.80
7.4.290.0000.00816.69
7.4.280.0080.00016.63
7.4.270.0000.00716.64
7.4.260.0070.00016.59
7.4.250.0040.00416.77
7.4.240.0020.00616.80
7.4.230.0070.00016.58
7.4.220.0030.01716.87
7.4.210.0090.00616.77
7.4.200.0080.00016.90
7.4.160.0060.01616.89
7.4.150.0100.01017.40
7.4.140.0150.00717.86
7.4.130.0050.01516.84
7.4.120.0100.00816.87
7.4.110.0070.01116.76
7.4.100.0100.01316.70
7.4.90.0170.01016.65
7.4.80.0140.00319.39
7.4.70.0090.00916.74
7.4.60.0040.01316.77
7.4.50.0000.01316.59
7.4.40.0100.00716.75
7.4.30.0060.01216.91
7.4.00.0060.01315.21
7.3.330.0030.00313.54
7.3.320.0050.00313.43
7.3.310.0030.00316.68
7.3.300.0040.00416.68
7.3.290.0070.01116.64
7.3.280.0080.00916.61
7.3.270.0160.00317.40
7.3.260.0070.01116.78
7.3.250.0130.00716.60
7.3.240.0070.01616.72
7.3.230.0190.00016.63
7.3.210.0170.00316.62
7.3.200.0130.01016.61
7.3.190.0090.00916.48
7.3.180.0050.01116.61
7.3.170.0090.00816.73
7.3.160.0090.00916.72
7.3.120.0090.01115.03
7.3.110.0100.00815.18
7.3.100.0070.00715.20
7.3.90.0080.00614.96
7.3.80.0080.00815.01
7.3.70.0050.00814.93
7.3.60.0100.00515.09
7.3.50.0090.00615.12
7.3.40.0030.01215.15
7.3.30.0050.00815.13
7.3.20.0070.00416.80
7.3.10.0100.00516.96
7.3.00.0020.01116.78
7.2.330.0130.00616.55
7.2.320.0090.01016.80
7.2.310.0090.00916.92
7.2.300.0090.00916.83
7.2.290.0110.00716.96
7.2.250.0060.01015.12
7.2.240.0100.01015.22
7.2.230.0090.00915.30
7.2.220.0030.01015.16
7.2.210.0080.00515.24
7.2.200.0030.00815.35
7.2.190.0060.00915.25
7.2.180.0060.01015.20
7.2.170.0050.01015.40
7.2.160.0100.00614.99
7.2.150.0060.00917.19
7.2.140.0030.00717.09
7.2.130.0030.01017.25
7.2.120.0000.01516.86
7.2.110.0000.01617.13
7.2.100.0060.00916.91
7.2.90.0060.01017.11
7.2.80.0040.01216.79
7.2.70.0040.00717.30
7.2.60.0080.00717.13
7.2.50.0070.00717.24
7.2.40.0110.00416.79
7.2.30.0140.00416.96
7.2.20.0030.01317.08
7.2.10.0120.00317.02
7.2.00.0100.00518.44
7.1.330.0050.01115.97
7.1.320.0060.00816.12
7.1.310.0050.00716.01
7.1.300.0060.00815.93
7.1.290.0050.00715.94
7.1.280.0040.01016.05
7.1.270.0080.00816.09
7.1.260.0080.00815.98
7.1.250.0000.01116.18
7.1.200.0030.00915.88
7.1.100.0040.01118.58
7.1.70.0000.01317.52
7.1.60.0130.01319.36
7.1.50.0100.01017.30
7.1.00.0100.07322.80
7.0.200.0040.00816.92
7.0.60.0030.05020.25
7.0.50.0070.03718.27
7.0.40.0100.07720.50
7.0.30.0170.05720.50
7.0.20.0230.04720.63
7.0.10.0100.06320.52
7.0.00.0030.04020.48
5.6.280.0100.05721.34
5.6.210.0200.05720.96
5.6.200.0000.05318.66
5.6.190.0070.04021.12
5.6.180.0300.08021.04
5.6.170.0300.07320.79
5.6.160.0130.07720.96
5.6.150.0030.04318.48
5.6.140.0070.07018.47
5.6.130.0070.07718.51
5.6.120.0070.08721.39
5.6.110.0130.08021.39
5.6.100.0030.06021.33
5.6.90.0100.06021.27
5.6.80.0130.06020.89
5.5.350.0300.06720.90
5.5.340.0130.04018.32
5.5.330.0130.08020.87
5.5.320.0270.08020.62
5.5.310.0270.04320.60
5.5.300.0100.07018.22
5.5.290.0000.08318.36
5.5.280.0070.08021.29
5.5.270.0070.03721.07
5.5.260.0070.08021.00
5.5.250.0000.05021.10
5.5.240.0300.06020.67

preferences:
36.31 ms | 400 KiB | 5 Q