3v4l.org

run code in 300+ PHP versions simultaneously
<?php $api_url = "http://api.wunderground.com/api/a4ae759739c92427/forecast/q/UK/Newcastle.json"; //need the js code here.. $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $json_string = curl_exec($ch); $parsed_json = json_decode($json_string); curl_close($ch); for($i = 0; $i <= 1; $i++) { $day = $parsed_json->forecast->txt_forecast->forecastday[ $i ]; echo $day->title . PHP_EOL . $day->fcttext_metric . PHP_EOL . PHP_EOL; }

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.0110.00716.37
8.3.50.0090.00922.05
8.3.40.0040.01418.96
8.3.30.0030.01418.78
8.3.20.0000.00720.29
8.3.10.0080.00023.61
8.3.00.0040.00419.26
8.2.180.0090.01216.88
8.2.170.0070.01422.96
8.2.160.0100.00720.52
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00417.50
8.2.120.0000.00826.35
8.2.110.0030.00720.35
8.2.100.0030.00917.72
8.2.90.0040.00418.16
8.2.80.0050.00317.97
8.2.70.0080.00017.36
8.2.60.0120.00017.91
8.2.50.0040.00418.07
8.2.40.0030.00519.28
8.2.30.0080.00020.58
8.2.20.0040.00417.70
8.2.10.0040.00418.05
8.2.00.0040.00417.98
8.1.280.0140.01025.92
8.1.270.0060.00323.91
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0090.00022.06
8.1.230.0030.00720.73
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0020.00517.63
8.1.180.0030.00518.10
8.1.170.0000.00818.50
8.1.160.0040.00421.89
8.1.150.0000.00718.84
8.1.140.0030.00519.46
8.1.130.0000.00717.72
8.1.120.0040.00417.44
8.1.110.0000.01017.43
8.1.100.0040.00417.32
8.1.90.0000.00717.34
8.1.80.0000.00717.41
8.1.70.0070.00017.38
8.1.60.0040.00417.59
8.1.50.0030.00517.43
8.1.40.0030.00517.55
8.1.30.0050.00317.67
8.1.20.0040.00417.58
8.1.10.0000.00717.45
8.1.00.0000.00817.57
8.0.300.0040.00420.18
8.0.290.0070.00016.63
8.0.280.0030.00318.45
8.0.270.0000.00717.17
8.0.260.0000.00817.21
8.0.250.0030.00316.89
8.0.240.0060.00016.98
8.0.230.0070.00016.96
8.0.220.0030.00616.92
8.0.210.0040.00416.88
8.0.200.0000.00716.88
8.0.190.0040.00416.90
8.0.180.0090.00016.97
8.0.170.0040.00416.82
8.0.160.0040.00416.91
8.0.150.0050.00216.73
8.0.140.0030.00516.85
8.0.130.0030.00313.29
8.0.120.0040.00416.77
8.0.110.0040.00416.92
8.0.100.0070.00016.70
8.0.90.0070.00016.86
8.0.80.0060.00916.79
8.0.70.0030.00616.81
8.0.60.0050.00216.73
8.0.50.0030.00516.83
8.0.30.0030.01717.17
8.0.20.0090.01217.40
8.0.10.0000.00717.00
8.0.00.0080.00916.80
7.4.330.0030.00316.69
7.4.320.0000.00616.51
7.4.300.0060.00016.41
7.4.290.0000.00716.52
7.4.280.0080.00016.37
7.4.270.0030.00316.51
7.4.260.0030.00316.59
7.4.250.0040.00416.48
7.4.240.0020.00616.62
7.4.230.0040.00416.36
7.4.220.0090.01516.62
7.4.210.0070.00716.56
7.4.200.0030.00316.65
7.4.160.0060.00916.34
7.4.150.0150.01217.40
7.4.140.0110.01217.86
7.4.130.0080.01216.54
7.4.120.0060.01216.61
7.4.110.0100.00716.57
7.4.100.0060.01216.58
7.4.90.0030.01516.42
7.4.80.0170.00319.39
7.4.70.0100.00716.55
7.4.60.0080.00816.54
7.4.50.0000.01616.50
7.4.40.0070.01416.57
7.4.30.0030.01416.49
7.4.00.0030.01014.96
7.3.330.0060.00013.09
7.3.320.0000.00713.13
7.3.310.0030.00316.38
7.3.300.0040.00416.28
7.3.290.0090.00516.25
7.3.280.0060.01216.31
7.3.270.0130.00417.40
7.3.260.0100.00716.27
7.3.250.0100.01116.46
7.3.240.0120.01016.37
7.3.230.0040.01216.39
7.3.210.0090.00616.37
7.3.200.0060.00916.17
7.3.190.0140.00316.34
7.3.180.0110.01516.45
7.3.170.0090.01216.61
7.3.160.0100.01016.32
7.3.10.0020.01216.68
7.3.00.0060.00716.31
7.2.330.0080.01116.48
7.2.320.0140.00416.63
7.2.310.0100.00716.52
7.2.300.0090.01216.50
7.2.290.0060.01016.66
7.2.130.0060.00816.66
7.2.120.0060.00716.73
7.2.110.0060.00616.67
7.2.100.0090.00416.86
7.2.90.0050.00916.71
7.2.80.0050.00816.78
7.2.70.0000.01416.81
7.2.60.0050.00816.67
7.2.50.0050.00816.58
7.2.40.0070.00316.74
7.2.30.0080.00616.90
7.2.20.0070.00816.76
7.2.10.0050.00816.84
7.2.00.0080.00617.53
7.1.250.0030.00915.71
7.1.200.0040.01115.45
7.1.100.0070.00717.53
7.1.70.0080.00016.72
7.1.60.0120.01219.36
7.1.50.0040.01216.84
7.1.00.0070.07322.44
7.0.200.0040.00416.51
7.0.60.0170.06319.97
7.0.50.0030.06717.91
7.0.40.0100.07320.24
7.0.30.0430.07720.13
7.0.20.0270.06720.20
7.0.10.0270.07320.00
7.0.00.0100.07320.05
5.6.280.0030.06321.04
5.6.210.0070.07720.64
5.6.200.0130.07018.14
5.6.190.0200.04720.45
5.6.180.0370.04720.27
5.6.170.0130.04320.48
5.6.160.0100.07720.41
5.6.150.0100.04718.18
5.6.140.0030.09018.21
5.6.130.0100.05018.07
5.6.120.0030.06321.04
5.6.110.0100.07721.14
5.6.100.0130.08021.02
5.6.90.0170.07021.11
5.6.80.0030.05720.38
5.5.350.0330.06720.52
5.5.340.0100.08018.02
5.5.330.0000.04320.14
5.5.320.0200.04320.17
5.5.310.0330.05720.18
5.5.300.0000.04718.00
5.5.290.0030.08317.98
5.5.280.0130.08020.96
5.5.270.0100.06320.69
5.5.260.0130.07720.64
5.5.250.0130.03320.55
5.5.240.0330.05020.23

preferences:
37.68 ms | 401 KiB | 5 Q