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); curl_close($ch); var_dump($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.0110.00716.63
8.3.50.0130.00621.97
8.3.40.0150.00418.80
8.3.30.0180.00018.55
8.3.20.0070.00020.17
8.3.10.0040.00423.48
8.3.00.0050.00319.50
8.2.180.0140.00716.75
8.2.170.0100.00722.96
8.2.160.0110.00320.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.03
8.2.110.0100.00019.31
8.2.100.0080.00317.78
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0060.00317.80
8.2.50.0030.00618.07
8.2.40.0000.00819.34
8.2.30.0030.00620.77
8.2.20.0000.00817.74
8.2.10.0070.00017.98
8.2.00.0040.00418.06
8.1.280.0150.00625.92
8.1.270.0100.00323.92
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00521.23
8.1.230.0110.00017.52
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0030.00717.35
8.1.180.0050.00218.10
8.1.170.0040.00418.61
8.1.160.0000.00721.96
8.1.150.0040.00418.74
8.1.140.0040.00419.50
8.1.130.0070.00017.71
8.1.120.0040.00417.31
8.1.110.0030.00717.40
8.1.100.0040.00417.41
8.1.90.0000.00817.38
8.1.80.0000.00817.37
8.1.70.0040.00417.39
8.1.60.0020.00517.35
8.1.50.0090.00017.52
8.1.40.0030.00517.44
8.1.30.0000.00817.69
8.1.20.0080.00017.68
8.1.10.0060.00317.61
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.26
8.0.270.0000.00717.15
8.0.260.0040.00417.19
8.0.250.0030.00316.93
8.0.240.0040.00417.00
8.0.230.0070.00016.91
8.0.220.0060.00316.93
8.0.210.0040.00416.85
8.0.200.0050.00216.95
8.0.190.0040.00416.84
8.0.180.0000.00816.87
8.0.170.0040.00416.98
8.0.160.0040.00416.95
8.0.150.0000.00716.68
8.0.140.0030.00316.88
8.0.130.0030.00313.36
8.0.120.0080.00016.83
8.0.110.0040.00416.88
8.0.100.0000.00816.77
8.0.90.0040.00416.84
8.0.80.0130.00716.84
8.0.70.0000.00716.77
8.0.60.0040.00416.84
8.0.50.0030.00616.75
8.0.30.0120.00716.96
8.0.20.0100.00817.40
8.0.10.0080.00017.03
8.0.00.0130.00416.55
7.4.330.0050.00016.84
7.4.320.0060.00016.57
7.4.300.0000.00716.55
7.4.290.0000.00716.51
7.4.280.0040.00416.39
7.4.270.0070.00016.52
7.4.260.0070.00016.60
7.4.250.0000.00816.52
7.4.240.0050.00216.57
7.4.230.0000.00716.41
7.4.220.0090.01016.64
7.4.210.0130.00716.59
7.4.200.0040.00416.39
7.4.160.0100.00716.57
7.4.150.0060.01217.40
7.4.140.0160.00617.86
7.4.130.0080.01016.43
7.4.120.0080.00916.57
7.4.110.0030.01316.53
7.4.100.0060.01616.50
7.4.90.0140.00316.50
7.4.80.0100.00719.39
7.4.70.0070.01016.51
7.4.60.0060.01016.62
7.4.50.0060.00916.41
7.4.40.0150.00616.71
7.4.30.0040.01216.47
7.4.00.0070.00714.93
7.3.330.0020.00213.21
7.3.320.0000.00613.01
7.3.310.0000.00716.32
7.3.300.0030.00316.24
7.3.290.0110.00716.29
7.3.280.0090.01116.30
7.3.270.0150.00317.40
7.3.260.0120.00416.23
7.3.250.0090.01116.42
7.3.240.0140.00916.35
7.3.230.0090.00916.39
7.3.210.0130.01016.18
7.3.200.0140.00716.54
7.3.190.0100.00716.39
7.3.180.0070.01416.43
7.3.170.0060.00916.27
7.3.160.0090.00916.32
7.2.330.0090.00916.40
7.2.320.0070.01016.29
7.2.310.0110.00616.19
7.2.300.0030.01316.49
7.2.290.0040.01216.56
7.2.60.0230.01116.49
7.2.00.0030.01319.00
7.1.200.0090.00615.59
7.1.70.0040.00416.73
7.1.60.0030.01017.16
7.1.50.0070.01416.77
7.1.00.0030.07722.31
7.0.200.0030.01416.70
7.0.60.0100.06719.98
7.0.50.0100.05017.79
7.0.40.0000.06320.20
7.0.30.0470.05020.13
7.0.20.0230.07320.00
7.0.10.0130.03720.18
7.0.00.0070.08720.02
5.6.280.0070.07021.07
5.6.210.0130.07320.75
5.6.200.0030.09018.18
5.6.190.0100.04020.60
5.6.180.0330.07720.45
5.6.170.0230.04320.52
5.6.160.0070.08320.70
5.6.150.0130.07718.18
5.6.140.0100.08018.11
5.6.130.0030.04018.16
5.6.120.0100.08021.04
5.6.110.0030.08721.14
5.6.100.0200.07020.98
5.6.90.0100.08020.95
5.6.80.0100.08020.37
5.5.350.0430.05320.35
5.5.340.0000.04717.86
5.5.330.0000.04320.15
5.5.320.0200.05320.20
5.5.310.0230.04020.31
5.5.300.0100.06018.02
5.5.290.0030.08317.91
5.5.280.0070.08720.85
5.5.270.0170.04720.80
5.5.260.0030.09020.79
5.5.250.0030.07020.57
5.5.240.0170.08320.12

preferences:
50.37 ms | 401 KiB | 5 Q