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.0040.01116.88
8.3.50.0160.00018.42
8.3.40.0090.00618.91
8.3.30.0120.00318.92
8.3.20.0020.00520.54
8.3.10.0040.00424.03
8.3.00.0080.00019.63
8.2.180.0210.00016.97
8.2.170.0170.00322.96
8.2.160.0030.01020.60
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00317.88
8.2.120.0040.00426.35
8.2.110.0070.00319.58
8.2.100.0090.00318.00
8.2.90.0000.00819.53
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0030.00518.16
8.2.50.0040.00418.07
8.2.40.0000.00819.50
8.2.30.0070.00020.77
8.2.20.0040.00418.02
8.2.10.0050.00318.32
8.2.00.0000.00818.26
8.1.280.0100.01025.92
8.1.270.0030.00524.09
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0040.00422.56
8.1.230.0100.00317.60
8.1.220.0000.00817.89
8.1.210.0030.00518.77
8.1.200.0070.00317.47
8.1.190.0080.00017.89
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00822.18
8.1.150.0000.00719.10
8.1.140.0000.00819.79
8.1.130.0030.00517.92
8.1.120.0000.00817.74
8.1.110.0070.00317.61
8.1.100.0030.00617.61
8.1.90.0000.00717.61
8.1.80.0000.00817.59
8.1.70.0000.00717.60
8.1.60.0000.00817.70
8.1.50.0060.00317.64
8.1.40.0050.00317.65
8.1.30.0030.00517.71
8.1.20.0040.00417.79
8.1.10.0000.00717.58
8.1.00.0080.00017.67
8.0.300.0000.00818.77
8.0.290.0050.00217.00
8.0.280.0000.00718.71
8.0.270.0070.00017.53
8.0.260.0040.00417.50
8.0.250.0040.00317.33
8.0.240.0050.00217.20
8.0.230.0000.00717.27
8.0.220.0050.00317.10
8.0.210.0000.00717.17
8.0.200.0030.00317.30
8.0.190.0040.00417.33
8.0.180.0040.00417.23
8.0.170.0080.00017.15
8.0.160.0040.00417.18
8.0.150.0000.00717.07
8.0.140.0040.00417.01
8.0.130.0060.00013.84
8.0.120.0060.00317.34
8.0.110.0050.00317.15
8.0.100.0030.00517.27
8.0.90.0000.00717.11
8.0.80.0100.00617.27
8.0.70.0050.00317.19
8.0.60.0060.00317.17
8.0.50.0030.00517.24
8.0.30.0160.00217.44
8.0.20.0110.00917.54
8.0.10.0030.00517.17
8.0.00.0100.00916.98
7.4.330.0050.00017.02
7.4.320.0030.00316.66
7.4.300.0030.00316.73
7.4.290.0000.00716.77
7.4.280.0000.00716.54
7.4.270.0030.00316.79
7.4.260.0070.00016.68
7.4.250.0060.00316.80
7.4.240.0030.00416.80
7.4.230.0080.00016.85
7.4.220.0090.01416.67
7.4.210.0140.00416.77
7.4.200.0000.00716.94
7.4.160.0070.01516.84
7.4.150.0110.00717.40
7.4.140.0100.01317.86
7.4.130.0080.01216.65
7.4.120.0100.00816.79
7.4.110.0160.00316.79
7.4.100.0030.01716.74
7.4.90.0170.00716.73
7.4.80.0090.00919.39
7.4.70.0130.00316.59
7.4.60.0180.00016.82
7.4.50.0110.00816.67
7.4.40.0130.00716.68
7.4.30.0090.00916.62
7.4.00.0040.00915.26
7.3.330.0020.00213.54
7.3.320.0000.00813.50
7.3.310.0040.00316.76
7.3.300.0020.00516.59
7.3.290.0080.01116.60
7.3.280.0050.01416.59
7.3.270.0150.00617.40
7.3.260.0110.00716.70
7.3.250.0110.00916.62
7.3.240.0090.01116.63
7.3.230.0100.01016.70
7.3.210.0130.00516.60
7.3.200.0120.00916.93
7.3.190.0100.01316.73
7.3.180.0070.01016.77
7.3.170.0070.01616.73
7.3.160.0100.01316.59
7.2.330.0130.00616.68
7.2.320.0100.01416.79
7.2.310.0120.00616.60
7.2.300.0130.00516.64
7.2.290.0140.00316.55
7.2.60.0000.01417.24
7.2.00.0110.00719.65
7.1.200.0110.00015.85
7.1.100.0060.01018.26
7.1.70.0060.00317.14
7.1.60.0160.01019.36
7.1.50.0060.00917.35
7.1.00.0070.07322.69
7.0.200.0030.00617.01
7.0.60.0030.07320.21
7.0.50.0030.08718.05
7.0.40.0000.06320.46
7.0.30.0530.07020.63
7.0.20.0100.04720.43
7.0.10.0130.03720.55
7.0.00.0030.04020.55
5.6.280.0030.05321.18
5.6.210.0070.08021.11
5.6.200.0130.08018.58
5.6.190.0070.05721.03
5.6.180.0330.05321.03
5.6.170.0130.05020.82
5.6.160.0100.08020.82
5.6.150.0030.04018.51
5.6.140.0100.08718.48
5.6.130.0070.04018.65
5.6.120.0070.06321.42
5.6.110.0100.05021.27
5.6.100.0130.05321.54
5.6.90.0070.08321.41
5.6.80.0100.08020.82
5.5.350.0270.08020.76
5.5.340.0130.07718.29
5.5.330.0130.07320.73
5.5.320.0230.05020.63
5.5.310.0230.04320.74
5.5.300.0030.08318.27
5.5.290.0100.06318.27
5.5.280.0100.04721.09
5.5.270.0030.04021.03
5.5.260.0030.08021.29
5.5.250.0130.03721.06
5.5.240.0270.04720.64

preferences:
74.96 ms | 401 KiB | 5 Q