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.40.0120.00318.45
8.3.30.0090.00618.32
8.3.20.0070.00020.38
8.3.10.0040.00423.60
8.3.00.0040.00419.25
8.2.170.0090.00922.96
8.2.160.0060.00920.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00317.25
8.2.120.0050.00226.35
8.2.110.0140.00421.00
8.2.100.0080.00417.78
8.2.90.0050.00318.97
8.2.80.0050.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0030.00719.23
8.2.30.0000.00720.54
8.2.20.0080.00017.46
8.2.10.0050.00317.94
8.2.00.0040.00417.91
8.1.270.0030.00623.83
8.1.260.0000.00928.09
8.1.250.0000.00728.09
8.1.240.0100.01023.89
8.1.230.0080.00319.48
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0060.00316.97
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0000.00721.82
8.1.150.0070.00018.81
8.1.140.0000.00819.50
8.1.130.0000.00717.68
8.1.120.0060.00317.33
8.1.110.0100.00017.21
8.1.100.0040.00417.32
8.1.90.0050.00317.23
8.1.80.0040.00417.29
8.1.70.0040.00417.35
8.1.60.0030.00517.47
8.1.50.0040.00417.38
8.1.40.0030.00517.28
8.1.30.0030.00517.52
8.1.20.0000.00717.40
8.1.10.0070.00017.28
8.1.00.0000.00817.39
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0000.00818.32
8.0.270.0030.00317.05
8.0.260.0000.00917.18
8.0.250.0050.00216.92
8.0.240.0040.00416.76
8.0.230.0040.00416.78
8.0.220.0060.00316.86
8.0.210.0070.00016.70
8.0.200.0000.00716.77
8.0.190.0050.00316.80
8.0.180.0040.00416.88
8.0.170.0000.00816.79
8.0.160.0030.00516.84
8.0.150.0040.00416.77
8.0.140.0070.00016.79
8.0.130.0070.00013.29
8.0.120.0070.00016.79
8.0.110.0060.00316.66
8.0.100.0040.00416.62
8.0.90.0020.00516.66
8.0.80.0090.00916.77
8.0.70.0040.00416.70
8.0.60.0040.00416.80
8.0.50.0000.00716.78
8.0.30.0170.00117.16
8.0.20.0100.01117.40
8.0.10.0000.00716.74
8.0.00.0090.00816.55
7.4.330.0060.00017.10
7.4.320.0070.00016.64
7.4.300.0000.00716.64
7.4.290.0030.00316.76
7.4.280.0000.00816.64
7.4.270.0030.00616.59
7.4.260.0050.00316.72
7.4.250.0030.00616.72
7.4.240.0020.00616.71
7.4.230.0040.00416.88
7.4.220.0170.01316.71
7.4.210.0120.00916.85
7.4.200.0040.00316.74
7.4.160.0060.01116.61
7.4.150.0080.01117.40
7.4.140.0180.00717.86
7.4.130.0100.01216.91
7.4.120.0160.00416.73
7.4.110.0060.01216.95
7.4.100.0140.00716.59
7.4.90.0090.00916.89
7.4.80.0120.01319.39
7.4.70.0130.00516.78
7.4.60.0100.00716.78
7.4.50.0060.01016.70
7.4.40.0090.00916.83
7.4.30.0130.00916.85
7.4.00.0100.00315.21
7.3.330.0000.00513.54
7.3.320.0030.00313.45
7.3.310.0000.00716.77
7.3.300.0030.00316.55
7.3.290.0100.00816.60
7.3.280.0110.00816.73
7.3.270.0160.00717.40
7.3.260.0160.00316.62
7.3.250.0110.00816.60
7.3.240.0090.01416.66
7.3.230.0150.00316.79
7.3.210.0150.00716.73
7.3.200.0060.01216.49
7.3.190.0170.00016.62
7.3.180.0100.00716.53
7.3.170.0130.00716.93
7.3.160.0080.00816.62
7.3.10.0100.00317.05
7.3.00.0070.01016.48
7.2.330.0140.00316.55
7.2.320.0060.01316.92
7.2.310.0130.01016.53
7.2.300.0070.01016.70
7.2.290.0060.01016.97
7.2.130.0080.00816.63
7.2.120.0120.00316.97
7.2.110.0030.01616.72
7.2.100.0110.00617.16
7.2.90.0040.01016.93
7.2.80.0130.00317.10
7.2.70.0110.01116.75
7.2.60.0060.01216.87
7.2.50.0140.00716.89
7.2.40.0140.00417.08
7.2.30.0220.00416.82
7.2.20.0100.01416.79
7.2.10.0070.01417.01
7.2.00.0100.00718.44
7.1.250.0120.00415.75
7.1.240.0040.01415.89
7.1.230.0130.00515.84
7.1.220.0060.01515.76
7.1.210.0060.00916.02
7.1.200.0090.00615.85
7.1.190.0090.00615.75
7.1.180.0110.00915.76
7.1.170.0100.01015.73
7.1.160.0150.00316.02
7.1.150.0100.00715.90
7.1.140.0110.01115.96
7.1.130.0100.01015.79
7.1.120.0100.01016.05
7.1.110.0140.00415.73
7.1.100.0060.00417.15
7.1.90.0100.01015.64
7.1.80.0110.00415.96
7.1.70.0030.00916.65
7.1.60.0090.01017.53
7.1.50.0110.00316.71
7.1.40.0100.00616.05
7.1.30.0070.01015.55
7.1.20.0100.00715.98
7.1.10.0060.01315.92
7.1.00.0080.04119.21
7.0.330.0080.00815.38
7.0.320.0130.00315.43
7.0.310.0160.00415.71
7.0.300.0060.01015.72
7.0.290.0120.00315.58
7.0.280.0030.01015.63
7.0.270.0120.00815.32
7.0.260.0150.00615.48
7.0.250.0150.00415.66
7.0.240.0170.00315.61
7.0.230.0090.01015.48
7.0.220.0120.00615.71
7.0.210.0150.00415.59
7.0.200.0070.00816.13
7.0.190.0070.01015.57
7.0.180.0110.00715.65
7.0.170.0070.01115.27
7.0.160.0080.01215.62
7.0.150.0100.00715.82
7.0.140.0060.00915.61
7.0.130.0110.00715.56
7.0.120.0100.00315.61
7.0.110.0100.00615.26
7.0.100.0120.00315.46
7.0.90.0060.00915.59
7.0.80.0070.01015.75
7.0.70.0150.00315.40
7.0.60.0130.04317.76
7.0.50.0120.02016.87
7.0.40.0080.04017.10
7.0.30.0310.03417.17
7.0.20.0210.04016.97
7.0.10.0130.04117.08
7.0.00.0050.05016.89
5.6.380.0080.00814.64
5.6.370.0100.01014.34
5.6.360.0070.01014.79
5.6.350.0100.00614.26
5.6.340.0080.00814.18
5.6.330.0030.01414.57
5.6.320.0060.01014.95
5.6.310.0060.00914.76
5.6.300.0070.01014.73
5.6.290.0000.01614.29
5.6.280.0050.03717.79
5.6.270.0030.01314.72
5.6.260.0040.00814.69
5.6.250.0040.01214.46
5.6.240.0090.00314.68
5.6.230.0060.00614.54
5.6.220.0070.00714.70
5.6.210.0100.03017.65
5.6.200.0060.02616.56
5.6.190.0060.03617.74
5.6.180.0150.02717.85
5.6.170.0120.02617.35
5.6.160.0080.04517.79
5.6.150.0050.02416.30
5.6.140.0070.04016.56
5.6.130.0050.02416.73
5.6.120.0050.02818.04
5.6.110.0100.04517.77
5.6.100.0130.03818.02
5.6.90.0020.04817.80
5.6.80.0060.04417.53
5.6.70.0040.01214.48
5.6.60.0040.01114.67
5.6.50.0090.00614.60
5.6.40.0130.00014.48
5.6.30.0060.00914.27
5.6.20.0030.01314.40
5.6.10.0040.00714.50
5.6.00.0000.01714.32
5.5.380.0080.00411.04
5.5.370.0120.00011.22
5.5.360.0060.00011.05
5.5.350.0180.03716.02
5.5.340.0070.04514.71
5.5.330.0000.02515.90
5.5.320.0320.02515.98
5.5.310.0230.02716.01
5.5.300.0150.03514.84
5.5.290.0100.04014.72
5.5.280.0100.04416.14
5.5.270.0090.02516.22
5.5.260.0090.04416.07
5.5.250.0080.02216.05
5.5.240.0260.03215.79
5.5.230.0140.00311.41
5.5.220.0100.00311.29
5.5.210.0050.00811.32
5.5.200.0000.00610.89
5.5.190.0040.00711.02
5.5.180.0060.00610.83
5.5.170.0090.00411.24
5.5.160.0000.01311.11
5.5.150.0100.00311.21
5.5.140.0000.01211.25
5.5.130.0030.01011.29
5.5.120.0000.01411.54
5.5.110.0090.00611.47
5.5.100.0080.00611.18
5.5.90.0060.00611.41
5.5.80.0000.00711.15
5.5.70.0030.01011.14
5.5.60.0110.00410.94
5.5.50.0040.00711.37
5.5.40.0050.00811.09
5.5.30.0030.00611.05
5.5.20.0040.00811.35
5.5.10.0100.00211.25
5.5.00.0000.01011.39

preferences:
42.22 ms | 400 KiB | 5 Q