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"); for($i = 0; $i <= 1; $i++) { $parsed_json = json_decode($json_string); $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.0070.00716.75
8.3.50.0120.00622.03
8.3.40.0110.00418.92
8.3.30.0090.00618.92
8.3.20.0040.00420.71
8.3.10.0050.00223.98
8.3.00.0030.00619.51
8.2.180.0130.00916.88
8.2.170.0150.00322.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.02
8.2.110.0050.00519.64
8.2.100.0130.00017.88
8.2.90.0000.00819.34
8.2.80.0080.00017.97
8.2.70.0030.00517.75
8.2.60.0030.00518.05
8.2.50.0040.00418.07
8.2.40.0050.00319.66
8.2.30.0050.00320.79
8.2.20.0000.00817.84
8.2.10.0040.00418.47
8.2.00.0040.00418.16
8.1.280.0140.00725.92
8.1.270.0110.00024.17
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.01422.68
8.1.230.0080.00417.48
8.1.220.0040.00417.89
8.1.210.0090.00018.77
8.1.200.0030.00617.38
8.1.190.0040.00417.95
8.1.180.0050.00318.10
8.1.170.0040.00418.68
8.1.160.0000.00822.14
8.1.150.0050.00319.02
8.1.140.0000.00819.79
8.1.130.0050.00317.88
8.1.120.0000.00717.61
8.1.110.0030.00717.61
8.1.100.0080.00017.73
8.1.90.0030.00517.61
8.1.80.0000.00817.49
8.1.70.0000.00717.64
8.1.60.0040.00417.89
8.1.50.0060.00317.55
8.1.40.0030.00517.78
8.1.30.0080.00017.77
8.1.20.0000.00817.82
8.1.10.0000.00817.63
8.1.00.0030.00717.60
8.0.300.0000.00818.77
8.0.290.0040.00417.13
8.0.280.0030.00318.73
8.0.270.0040.00417.18
8.0.260.0030.00617.50
8.0.250.0000.00717.22
8.0.240.0000.00717.19
8.0.230.0000.00717.31
8.0.220.0070.00317.26
8.0.210.0050.00217.08
8.0.200.0040.00417.30
8.0.190.0080.00017.25
8.0.180.0060.00317.14
8.0.170.0000.00917.18
8.0.160.0000.00817.23
8.0.150.0000.00717.05
8.0.140.0040.00417.13
8.0.130.0030.00313.71
8.0.120.0040.00417.31
8.0.110.0000.00817.38
8.0.100.0040.00417.11
8.0.90.0050.00317.34
8.0.80.0100.00717.25
8.0.70.0040.00417.22
8.0.60.0080.00017.32
8.0.50.0040.00417.10
8.0.30.0090.00917.30
8.0.20.0080.01217.44
8.0.10.0040.00417.21
8.0.00.0060.01417.11
7.4.330.0000.00517.06
7.4.320.0000.00816.73
7.4.300.0060.00016.80
7.4.290.0030.00316.75
7.4.280.0000.00816.63
7.4.270.0030.00316.73
7.4.260.0030.00316.70
7.4.250.0100.00016.82
7.4.240.0040.00416.77
7.4.230.0030.00316.64
7.4.220.0100.01716.76
7.4.210.0090.00616.76
7.4.200.0070.00016.71
7.4.160.0070.01016.89
7.4.150.0100.01017.40
7.4.140.0120.00817.86
7.4.130.0080.01216.88
7.4.120.0090.01216.87
7.4.110.0140.00616.79
7.4.100.0210.00016.68
7.4.90.0140.00716.76
7.4.80.0170.00019.39
7.4.70.0150.00316.72
7.4.60.0110.00616.63
7.4.50.0070.01016.76
7.4.40.0100.00716.84
7.4.30.0160.00316.64
7.4.00.0130.00615.12
7.3.330.0000.00513.44
7.3.320.0030.00313.59
7.3.310.0040.00316.75
7.3.300.0000.00716.54
7.3.290.0090.01016.68
7.3.280.0090.00816.69
7.3.270.0070.01117.40
7.3.260.0110.00616.67
7.3.250.0090.00916.68
7.3.240.0110.00916.61
7.3.230.0180.00016.63
7.3.210.0080.00916.88
7.3.200.0090.00916.52
7.3.190.0040.01516.70
7.3.180.0070.01016.71
7.3.170.0120.00616.66
7.3.160.0160.00616.66
7.3.120.0060.01015.26
7.3.110.0070.01114.90
7.3.100.0110.00414.93
7.3.90.0040.01114.98
7.3.80.0040.01414.84
7.3.70.0110.00414.76
7.3.60.0060.00915.02
7.3.50.0120.00315.11
7.3.40.0030.01315.07
7.3.30.0120.00314.96
7.3.20.0030.01316.98
7.3.10.0100.00816.77
7.3.00.0050.00616.85
7.2.330.0030.01416.55
7.2.320.0090.01016.61
7.2.310.0160.00616.80
7.2.300.0190.00016.77
7.2.290.0150.00316.79
7.2.250.0110.00715.24
7.2.240.0060.00915.35
7.2.230.0040.01115.13
7.2.220.0000.01215.11
7.2.210.0070.01115.23
7.2.200.0090.00615.04
7.2.190.0110.00015.41
7.2.180.0070.01415.23
7.2.170.0080.00415.16
7.2.130.0100.00717.06
7.2.120.0070.01216.83
7.2.110.0070.00817.15
7.2.100.0120.01116.81
7.2.90.0130.00617.09
7.2.80.0100.00817.00
7.2.70.0100.00916.93
7.2.60.0060.01217.10
7.2.50.0080.00716.96
7.2.40.0070.00616.98
7.2.30.0040.01117.01
7.2.20.0030.01216.87
7.2.10.0030.00817.11
7.2.00.0070.01016.91
7.1.330.0060.00915.75
7.1.320.0030.01016.23
7.1.310.0070.01116.29
7.1.300.0080.00816.19
7.1.290.0130.00616.24
7.1.280.0060.00616.26
7.1.270.0060.00916.14
7.1.260.0080.00816.13
7.1.250.0080.00616.06
7.1.200.0090.00615.99
7.1.100.0030.01318.05
7.1.70.0060.00617.51
7.1.60.0060.01919.36
7.1.50.0120.01217.03
7.1.00.0070.07322.87
7.0.200.0030.00716.63
7.0.60.0000.08320.41
7.0.50.0030.05018.13
7.0.40.0100.07020.51
7.0.30.0500.07020.59
7.0.20.0030.05320.51
7.0.10.0070.04320.59
7.0.00.0000.04320.44
5.6.280.0030.04321.25
5.6.210.0030.05320.86
5.6.200.0130.07718.42
5.6.190.0070.04321.06
5.6.180.0330.07021.01
5.6.170.0330.07320.82
5.6.160.0070.04320.85
5.6.150.0070.03718.73
5.6.140.0170.06318.73
5.6.130.0030.08318.51
5.6.120.0070.08321.52
5.6.110.0100.06321.41
5.6.100.0130.07321.52
5.6.90.0070.06021.23
5.6.80.0170.06320.81
5.5.350.0270.07720.81
5.5.340.0200.06018.36
5.5.330.0100.06720.91
5.5.320.0330.03320.61
5.5.310.0230.06720.52
5.5.300.0070.07018.36
5.5.290.0030.06718.25
5.5.280.0130.06021.15
5.5.270.0030.05021.28
5.5.260.0070.06321.27
5.5.250.0030.04320.96
5.5.240.0300.06720.42

preferences:
56.04 ms | 401 KiB | 5 Q