3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://maps.google.com/maps/api/geocode/json?address=Bahnhofstra%C3%9Fe+19+Gr%C3%A4fenhainichen&components=country:NL'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $data = curl_exec($ch); $data = json_decode($data); var_dump($data); if (!curl_errno($ch) && isset($data->status) && ($data->status == 'OK')) { // $latitude = $data->result[0]->geometry->location->lat; // $longitude = $data->result[0]->geometry->location->lng; // if ($dealers = User::findDealersByCoordinates($longitude, $latitude, $country->id)) { // $dealerId = $dealers[0]['dealerID']; // $websiteId = $dealers[0]['websiteID']; // } } else { // Yii::error('Curl request at Google API timeout'); } curl_close($ch);

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.70.0040.01118.30
8.3.60.0150.00616.63
8.3.50.0080.01021.92
8.3.40.0100.00719.02
8.3.30.0110.00318.84
8.3.20.0050.00220.16
8.3.10.0000.00823.46
8.3.00.0040.00419.48
8.2.190.0000.01516.88
8.2.180.0150.00316.63
8.2.170.0070.00722.96
8.2.160.0000.01520.41
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0030.00619.24
8.2.120.0080.00026.35
8.2.110.0040.00420.52
8.2.100.0090.00317.80
8.2.90.0030.00619.22
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0070.00019.44
8.2.30.0070.00020.73
8.2.20.0030.00617.59
8.2.10.0040.00418.03
8.2.00.0000.00817.97
8.1.280.0090.00925.92
8.1.270.0100.00022.20
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0110.00320.70
8.1.230.0070.00417.66
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0000.00718.71
8.1.160.0000.00721.95
8.1.150.0050.00218.78
8.1.140.0030.00519.56
8.1.130.0050.00317.69
8.1.120.0000.00717.39
8.1.110.0000.00817.30
8.1.100.0040.00417.28
8.1.90.0000.00717.46
8.1.80.0000.00717.39
8.1.70.0000.00717.32
8.1.60.0030.00617.54
8.1.50.0080.00017.56
8.1.40.0000.00817.53
8.1.30.0060.00317.66
8.1.20.0000.00917.70
8.1.10.0040.00417.47
8.1.00.0070.00017.47
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.37
8.0.270.0030.00317.07
8.0.260.0000.00617.12
8.0.250.0030.00316.93
8.0.240.0040.00416.86
8.0.230.0000.00716.90
8.0.220.0000.00816.78
8.0.210.0000.00716.79
8.0.200.0000.00616.93
8.0.190.0090.00016.80
8.0.180.0040.00416.93
8.0.170.0020.00516.96
8.0.160.0040.00416.79
8.0.150.0070.00016.81
8.0.140.0030.00316.80
8.0.130.0000.00513.28
8.0.120.0050.00316.83
8.0.110.0000.00716.80
8.0.100.0000.00716.79
8.0.90.0080.00016.79
8.0.80.0070.01016.90
8.0.70.0030.00516.96
8.0.60.0060.00316.78
8.0.50.0040.00416.79
8.0.30.0100.00916.93
8.0.20.0110.01217.40
8.0.10.0000.00716.91
8.0.00.0100.00716.70
7.4.330.0060.00016.70
7.4.320.0030.00316.54
7.4.300.0000.00616.65
7.4.290.0070.00016.61
7.4.280.0040.00416.41
7.4.270.0000.00716.54
7.4.260.0030.00316.45
7.4.250.0040.00416.39
7.4.240.0040.00416.64
7.4.230.0040.00416.41
7.4.220.0070.01116.50
7.4.210.0090.01016.52
7.4.200.0000.00716.58
7.4.160.0030.01216.46
7.4.150.0310.03117.40
7.4.140.0110.01117.86
7.4.130.0050.01216.48
7.4.120.0120.00616.64
7.4.110.0070.01116.51
7.4.100.0140.00416.42
7.4.90.0120.00516.53
7.4.80.0060.01619.39
7.4.70.0060.01916.49
7.4.60.0100.00616.55
7.4.50.0110.00716.59
7.4.40.0100.01316.49
7.4.30.0000.01716.48
7.4.00.0080.00415.16
7.3.330.0000.00613.00
7.3.320.0000.00513.00
7.3.310.0000.00716.31
7.3.300.0040.00416.11
7.3.290.0070.00016.16
7.3.280.0080.01016.24
7.3.270.0030.01317.40
7.3.260.0100.00716.56
7.3.250.0140.00416.38
7.3.240.0090.01116.19
7.3.230.0170.00616.39
7.3.210.0110.00616.39
7.3.200.0100.01116.38
7.3.190.0140.00616.45
7.3.180.0100.00716.20
7.3.170.0110.00416.41
7.3.160.0040.01216.33
7.2.330.0110.00516.57
7.2.320.0070.01116.28
7.2.310.0060.01016.37
7.2.300.0140.00316.66
7.2.290.0030.01416.18
7.2.60.0080.00416.57
7.2.00.0080.00619.37
7.1.200.0090.00315.41
7.1.100.0030.00617.62
7.1.70.0000.01316.96
7.1.60.0090.01619.36
7.1.50.0000.01816.80
7.1.00.0070.07322.27
7.0.200.0050.00216.77
7.0.60.0100.06020.05
7.0.50.0100.06017.89
7.0.40.0030.05320.07
7.0.30.0330.04720.09
7.0.20.0330.06720.09
7.0.10.0130.08320.17
7.0.00.0070.04320.03
5.6.280.0070.06321.04
5.6.210.0070.07320.48
5.6.200.0100.03718.17
5.6.190.0130.06020.45
5.6.180.0470.06320.41
5.6.170.0200.05020.52
5.6.160.0130.07320.32
5.6.150.0100.07018.08
5.6.140.0070.08018.11
5.6.130.0000.09018.09
5.6.120.0030.05321.05
5.6.110.0100.03721.09
5.6.100.0070.03720.96
5.6.90.0070.08321.00
5.6.80.0030.06720.53
5.5.350.4230.03320.35
5.5.340.0000.04718.01
5.5.330.0130.07720.15
5.5.320.0000.04020.20
5.5.310.0200.05720.18
5.5.300.0070.06018.00
5.5.290.0030.04317.95
5.5.280.0100.04020.65
5.5.270.0000.08020.74
5.5.260.0070.08020.89
5.5.250.0100.06020.68
5.5.240.0200.07320.07

preferences:
62.18 ms | 401 KiB | 5 Q