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.0120.00317.00
8.3.50.0120.00722.11
8.3.40.0090.00918.96
8.3.30.0110.00419.10
8.3.20.0080.00020.58
8.3.10.0040.00424.03
8.3.00.0080.00019.63
8.2.180.0080.00818.79
8.2.170.0110.00422.96
8.2.160.0140.00720.45
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0060.00317.88
8.2.120.0080.00026.35
8.2.110.0040.01821.19
8.2.100.0080.00418.09
8.2.90.0040.00419.47
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0000.00918.15
8.2.50.0050.00318.10
8.2.40.0070.00419.50
8.2.30.0070.00020.75
8.2.20.0060.00317.97
8.2.10.0000.00718.25
8.2.00.0040.00418.34
8.1.280.0160.00625.92
8.1.270.0090.00024.00
8.1.260.0030.00728.09
8.1.250.0030.00628.09
8.1.240.0110.01124.15
8.1.230.0080.00319.67
8.1.220.0080.00017.89
8.1.210.0030.00518.77
8.1.200.0000.01017.61
8.1.190.0090.00017.48
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0000.00722.18
8.1.150.0050.00219.14
8.1.140.0000.00919.79
8.1.130.0000.00717.90
8.1.120.0000.00817.61
8.1.110.0050.00617.57
8.1.100.0020.00517.56
8.1.90.0040.00417.61
8.1.80.0080.00017.60
8.1.70.0000.00717.56
8.1.60.0000.00917.73
8.1.50.0100.00017.67
8.1.40.0040.00417.65
8.1.30.0030.00617.82
8.1.20.0000.00817.77
8.1.10.0040.00417.67
8.1.00.0050.00317.60
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0050.00318.77
8.0.270.0000.00717.64
8.0.260.0060.00317.45
8.0.250.0050.00317.23
8.0.240.0040.00417.31
8.0.230.0000.00717.16
8.0.220.0080.00017.15
8.0.210.0070.00017.20
8.0.200.0040.00417.20
8.0.190.0040.00417.27
8.0.180.0080.00017.17
8.0.170.0080.00017.07
8.0.160.0050.00317.16
8.0.150.0000.00817.16
8.0.140.0030.00617.02
8.0.130.0030.00313.72
8.0.120.0040.00417.21
8.0.110.0040.00417.25
8.0.100.0000.00717.16
8.0.90.0070.00017.13
8.0.80.0040.01217.25
8.0.70.0040.00417.27
8.0.60.0000.00817.14
8.0.50.0080.00017.25
8.0.30.0130.00517.23
8.0.20.0170.00617.40
8.0.10.0030.00617.29
8.0.00.0090.01016.97
7.4.330.0060.00017.13
7.4.320.0070.00016.73
7.4.300.0070.00016.63
7.4.290.0030.00316.68
7.4.280.0000.00816.72
7.4.270.0040.00416.67
7.4.260.0000.00716.65
7.4.250.0040.00416.80
7.4.240.0040.00416.85
7.4.230.0050.00316.91
7.4.220.0120.01216.77
7.4.210.0110.00416.86
7.4.200.0000.00716.81
7.4.160.0100.00716.69
7.4.150.0140.01417.40
7.4.140.0100.01217.86
7.4.130.0100.00916.64
7.4.120.0140.00516.83
7.4.110.0060.01316.75
7.4.100.0150.00916.72
7.4.90.0130.00616.81
7.4.80.0120.00619.39
7.4.70.0050.01216.73
7.4.60.0070.01016.65
7.4.50.0000.01516.88
7.4.40.0120.00916.61
7.4.30.0140.00716.73
7.4.00.0130.00315.36
7.3.330.0030.00313.36
7.3.320.0040.00413.43
7.3.310.0050.00216.72
7.3.300.0030.00316.61
7.3.290.0090.00816.59
7.3.280.0090.00716.70
7.3.270.0160.01317.40
7.3.260.0130.00816.73
7.3.250.0110.00716.65
7.3.240.0090.01216.71
7.3.230.0150.00416.51
7.3.210.0060.01316.73
7.3.200.0110.00716.76
7.3.190.0090.00916.77
7.3.180.0080.00816.68
7.3.170.0040.01716.80
7.3.160.0090.00916.60
7.3.10.0070.00716.23
7.3.00.0120.00616.62
7.2.330.0060.01516.84
7.2.320.0180.00616.55
7.2.310.0100.01316.80
7.2.300.0030.01516.64
7.2.290.0070.01316.86
7.2.130.0070.01116.80
7.2.120.0140.00716.62
7.2.110.0130.00716.70
7.2.100.0190.00617.00
7.2.90.0120.00816.63
7.2.80.0130.00616.63
7.2.70.0130.00316.92
7.2.60.0120.00616.55
7.2.50.0080.01916.96
7.2.40.0240.00316.86
7.2.30.0250.00316.61
7.2.20.0100.01316.88
7.2.10.0160.00816.79
7.2.00.0110.01118.27
7.1.250.0140.00715.55
7.1.200.0060.00616.16
7.1.100.0040.00418.32
7.1.70.0060.00317.61
7.1.60.0110.01519.36
7.1.50.0100.01417.33
7.1.00.0030.07322.76
7.0.200.0040.00417.05
7.0.60.0030.08020.43
7.0.50.0070.05318.10
7.0.40.0100.08020.52
7.0.30.0470.07320.48
7.0.20.0230.04720.45
7.0.10.0200.07720.57
7.0.00.0030.09320.55
5.6.280.0000.05321.52
5.6.210.0100.05720.88
5.6.200.0270.03718.41
5.6.190.0070.05721.08
5.6.180.0370.05721.04
5.6.170.0170.04020.86
5.6.160.0170.07320.86
5.6.150.0000.04318.40
5.6.140.0130.07318.48
5.6.130.0070.04318.60
5.6.120.0070.07721.50
5.6.110.0030.08721.41
5.6.100.0130.08021.26
5.6.90.0070.06321.31
5.6.80.0030.07020.93
5.5.350.0300.07020.83
5.5.340.0030.07718.35
5.5.330.0000.04720.86
5.5.320.0270.05020.77
5.5.310.0270.04320.65
5.5.300.0030.06018.32
5.5.290.0100.04318.32
5.5.280.0070.05721.06
5.5.270.0070.08721.24
5.5.260.0070.08021.12
5.5.250.0000.05321.04
5.5.240.0270.07720.48

preferences:
46.11 ms | 401 KiB | 5 Q