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.63
8.3.50.0100.00716.48
8.3.40.0040.01118.59
8.3.30.0040.01118.48
8.3.20.0040.00420.33
8.3.10.0050.00323.84
8.3.00.0040.00419.25
8.2.180.0120.00616.38
8.2.170.0140.00322.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00919.23
8.2.120.0040.00426.35
8.2.110.0030.00622.08
8.2.100.0040.00817.50
8.2.90.0000.00819.15
8.2.80.0030.00617.97
8.2.70.0030.00617.25
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00719.34
8.2.30.0040.00420.68
8.2.20.0030.00617.61
8.2.10.0040.00417.93
8.2.00.0040.00417.93
8.1.280.0180.00325.92
8.1.270.0070.00323.91
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0030.00623.88
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.10
8.1.190.0050.00217.70
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00422.01
8.1.150.0000.00718.82
8.1.140.0050.00319.48
8.1.130.0040.00417.54
8.1.120.0040.00417.24
8.1.110.0000.01017.23
8.1.100.0000.00717.25
8.1.90.0050.00317.34
8.1.80.0040.00417.26
8.1.70.0070.00017.33
8.1.60.0030.00517.36
8.1.50.0000.00817.28
8.1.40.0060.00317.40
8.1.30.0080.00017.46
8.1.20.0040.00417.43
8.1.10.0000.00817.35
8.1.00.0080.00017.21
8.0.300.0080.00018.77
8.0.290.0080.00016.58
8.0.280.0000.00718.34
8.0.270.0000.00817.18
8.0.260.0030.00517.12
8.0.250.0000.00716.83
8.0.240.0000.00816.93
8.0.230.0030.00316.77
8.0.220.0040.00416.71
8.0.210.0030.00316.89
8.0.200.0000.00716.93
8.0.190.0000.00816.82
8.0.180.0070.00016.81
8.0.170.0040.00416.85
8.0.160.0000.00816.90
8.0.150.0030.00316.84
8.0.140.0000.00716.75
8.0.130.0050.00013.19
8.0.120.0050.00316.75
8.0.110.0050.00216.72
8.0.100.0040.00416.71
8.0.90.0000.00716.87
8.0.80.0060.01016.89
8.0.70.0000.00716.94
8.0.60.0000.00716.89
8.0.50.0000.00716.66
8.0.30.0130.00616.99
8.0.20.0140.00417.40
8.0.10.0040.00416.97
8.0.00.0070.01016.76
7.4.330.0050.00017.09
7.4.320.0040.00416.68
7.4.300.0060.00016.82
7.4.290.0040.00416.77
7.4.280.0050.00216.75
7.4.270.0070.00016.73
7.4.260.0000.00716.70
7.4.250.0000.00816.71
7.4.240.0060.00116.85
7.4.230.0030.00316.93
7.4.220.0090.01216.68
7.4.210.0120.00316.73
7.4.200.0000.00816.93
7.4.160.0140.00916.89
7.4.150.0140.00617.40
7.4.140.0070.01217.86
7.4.130.0110.00916.74
7.4.120.0090.00916.86
7.4.110.0120.00616.75
7.4.100.0110.01416.79
7.4.90.0080.01116.89
7.4.80.0150.00319.39
7.4.70.0180.00616.68
7.4.60.0040.01216.71
7.4.50.0030.01216.38
7.4.40.0140.00416.89
7.4.30.0140.00816.76
7.4.00.0040.01115.06
7.3.330.0000.00513.40
7.3.320.0070.00013.36
7.3.310.0080.00016.56
7.3.300.0030.00316.48
7.3.290.0050.00916.57
7.3.280.0090.01216.70
7.3.270.0150.00617.40
7.3.260.0140.00316.92
7.3.250.0130.00516.74
7.3.240.0100.01016.78
7.3.230.0160.00716.54
7.3.210.0110.00716.57
7.3.200.0100.01316.68
7.3.190.0000.01716.80
7.3.180.0130.00416.85
7.3.170.0030.01416.83
7.3.160.0100.00716.69
7.2.330.0150.00416.89
7.2.320.0090.01516.76
7.2.310.0130.00716.87
7.2.300.0120.00616.58
7.2.290.0060.01216.57
7.2.60.0090.00617.01
7.2.50.0100.00617.14
7.2.00.0120.00619.38
7.1.200.0250.00815.85
7.1.100.0100.00318.48
7.1.70.0020.00517.42
7.1.60.0060.01919.36
7.1.50.0100.01417.18
7.1.00.0100.06722.87
7.0.200.0000.00816.82
7.0.60.0100.07020.41
7.0.50.0100.07318.32
7.0.40.0100.05020.48
7.0.30.0330.05020.47
7.0.20.0200.06720.49
7.0.10.0130.07720.43
7.0.00.0070.07020.46
5.6.280.0030.05721.19
5.6.210.0200.07020.88
5.6.200.0070.06018.45
5.6.190.0100.08020.98
5.6.180.0330.04021.10
5.6.170.0130.04720.87
5.6.160.0130.04020.82
5.6.150.0030.04018.51
5.6.140.0070.08318.46
5.6.130.0030.05718.47
5.6.120.0170.06721.42
5.6.110.0100.08721.52
5.6.100.0170.07721.41
5.6.90.0200.07321.41
5.6.80.0170.07020.72
5.5.350.0430.06720.84
5.5.340.0070.08018.37
5.5.330.0100.05320.89
5.5.320.0300.07020.61
5.5.310.0270.03320.65
5.5.300.0030.08318.32
5.5.290.0100.07318.46
5.5.280.0000.06721.29
5.5.270.0000.04321.29
5.5.260.0130.06321.08
5.5.250.0000.04320.90
5.5.240.0070.03020.69

preferences:
55.62 ms | 400 KiB | 5 Q