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.0070.01118.55
8.3.60.0110.00716.63
8.3.50.0090.00921.92
8.3.40.0070.01018.78
8.3.30.0140.00018.80
8.3.20.0070.00020.21
8.3.10.0000.00723.61
8.3.00.0050.00319.36
8.2.190.0110.00417.00
8.2.180.0040.01116.75
8.2.170.0140.00722.96
8.2.160.0080.00520.37
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00317.63
8.2.120.0070.00026.35
8.2.110.0060.00322.05
8.2.100.0060.00617.80
8.2.90.0000.00719.27
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.91
8.2.50.0040.00418.07
8.2.40.0040.00419.42
8.2.30.0000.00720.71
8.2.20.0070.00317.77
8.2.10.0050.00218.02
8.2.00.0040.00418.05
8.1.280.0140.00425.92
8.1.270.0040.00722.05
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0000.00822.58
8.1.230.0120.00017.53
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0040.00422.02
8.1.150.0000.00718.86
8.1.140.0000.00919.46
8.1.130.0070.00017.66
8.1.120.0000.00817.45
8.1.110.0000.00717.43
8.1.100.0070.00017.39
8.1.90.0000.00717.44
8.1.80.0040.00417.39
8.1.70.0040.00417.44
8.1.60.0000.00817.45
8.1.50.0030.00517.52
8.1.40.0000.00817.48
8.1.30.0000.01017.71
8.1.20.0040.00417.70
8.1.10.0030.00617.56
8.1.00.0000.00817.49
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0000.00718.41
8.0.270.0030.00317.13
8.0.260.0000.00617.10
8.0.250.0030.00316.90
8.0.240.0060.00316.88
8.0.230.0030.00316.93
8.0.220.0020.00516.79
8.0.210.0050.00216.98
8.0.200.0000.00617.00
8.0.190.0040.00716.98
8.0.180.0030.00516.84
8.0.170.0040.00416.99
8.0.160.0000.00716.98
8.0.150.0000.00716.77
8.0.140.0040.00416.75
8.0.130.0000.00513.33
8.0.120.0040.00416.91
8.0.110.0040.00416.81
8.0.100.0040.00416.81
8.0.90.0000.00716.96
8.0.80.0110.00616.88
8.0.70.0000.00816.98
8.0.60.0000.00716.75
8.0.50.0040.00416.77
8.0.30.0090.01217.16
8.0.20.0140.01017.40
8.0.10.0000.00716.99
8.0.00.0100.00916.67
7.4.330.0000.00616.71
7.4.320.0060.00016.59
7.4.300.0060.00016.40
7.4.290.0070.00016.44
7.4.280.0000.00716.38
7.4.270.0040.00416.56
7.4.260.0000.00716.61
7.4.250.0050.00316.51
7.4.240.0030.00316.48
7.4.230.0000.00816.65
7.4.220.0090.00916.57
7.4.210.0100.00616.58
7.4.200.0030.00316.44
7.4.160.0090.00616.68
7.4.150.0100.01617.40
7.4.140.0160.00517.86
7.4.130.0070.01016.53
7.4.120.0100.00716.57
7.4.110.0070.01016.71
7.4.100.0070.01416.52
7.4.90.0030.01516.55
7.4.80.0150.00319.39
7.4.70.0120.00616.49
7.4.60.0070.01016.62
7.4.50.0140.00016.47
7.4.40.0100.00616.48
7.4.30.0100.00616.62
7.4.00.0040.01115.13
7.3.330.0060.00013.21
7.3.320.0000.00513.27
7.3.310.0030.00316.22
7.3.300.0050.00216.28
7.3.290.0070.00016.29
7.3.280.0100.00716.29
7.3.270.0140.00417.40
7.3.260.0100.00716.38
7.3.250.0090.00916.29
7.3.240.0110.00716.51
7.3.230.0100.01316.61
7.3.210.0060.01016.52
7.3.200.0080.00816.28
7.3.190.0120.00616.34
7.3.180.0060.01216.50
7.3.170.0070.01016.55
7.3.160.0130.00316.29
7.3.00.0070.01016.46
7.2.330.0030.01316.18
7.2.320.0160.00616.55
7.2.310.0100.00716.46
7.2.300.0040.01616.54
7.2.290.0140.00316.23
7.2.130.0110.00416.58
7.2.120.0070.01016.48
7.2.110.0090.00916.68
7.2.100.0070.01316.85
7.2.90.0060.01316.94
7.2.80.0070.01016.71
7.2.70.0140.00716.71
7.2.60.0120.00816.79
7.2.50.0170.00316.45
7.2.40.0070.00716.44
7.2.30.0090.00616.58
7.2.20.0070.00716.70
7.2.10.0110.00416.87
7.2.00.0050.01218.04
7.1.250.0070.01015.38
7.1.240.0090.00915.17
7.1.230.0080.00815.58
7.1.220.0170.00015.59
7.1.210.0080.01215.32
7.1.200.0110.00915.50
7.1.190.0120.00615.36
7.1.180.0110.01115.49
7.1.170.0240.00315.42
7.1.160.0200.00015.54
7.1.150.0070.00715.24
7.1.140.0030.01015.58
7.1.130.0090.00615.44
7.1.120.0080.01115.27
7.1.110.0120.00315.41
7.1.100.0050.00916.58
7.1.90.0100.00315.64
7.1.80.0110.00015.52
7.1.70.0040.01116.26
7.1.60.0140.00717.31
7.1.50.0050.00716.25
7.1.40.0060.00315.40
7.1.30.0080.00415.53
7.1.20.0120.00015.56
7.1.10.0140.00315.39
7.1.00.0100.03718.98
7.0.330.0070.00715.15
7.0.320.0070.00715.09
7.0.310.0130.00015.09
7.0.300.0080.00814.80
7.0.290.0070.00714.98
7.0.280.0080.00415.18
7.0.270.0130.00315.10
7.0.260.0070.00714.89
7.0.250.0110.00415.02
7.0.240.0040.01015.32
7.0.230.0080.00815.20
7.0.220.0120.00015.07
7.0.210.0050.00514.99
7.0.200.0060.00415.87
7.0.190.0070.00715.13
7.0.180.0080.00415.01
7.0.170.0090.00315.01
7.0.160.0070.01115.12
7.0.150.0100.01015.25
7.0.140.0030.00715.36
7.0.130.0070.00315.13
7.0.120.0080.00815.25
7.0.110.0110.00015.14
7.0.100.0140.00014.96
7.0.90.0150.00015.00
7.0.80.0090.00315.22
7.0.70.0070.01014.88
7.0.60.0060.04117.40
7.0.50.0120.02216.51
7.0.40.0030.02916.63
7.0.30.0270.03716.69
7.0.20.0120.02416.51
7.0.10.0020.03216.78
7.0.00.0050.04816.58
5.6.380.0130.00014.15
5.6.370.0090.00314.08
5.6.360.0080.00514.16
5.6.350.0060.00914.02
5.6.340.0070.00313.98
5.6.330.0060.00313.87
5.6.320.0030.00313.82
5.6.310.0000.01114.17
5.6.300.0060.00913.95
5.6.290.0080.00614.32
5.6.280.0100.03717.39
5.6.270.0100.00314.10
5.6.260.0030.00713.82
5.6.250.0100.00313.99
5.6.240.0090.00313.95
5.6.230.0040.01113.84
5.6.220.0090.00614.04
5.6.210.0070.04217.28
5.6.200.0080.03816.05
5.6.190.0070.03817.30
5.6.180.0200.02617.14
5.6.170.0190.02317.28
5.6.160.0100.04217.34
5.6.150.0100.03315.94
5.6.140.0050.03615.92
5.6.130.0040.04716.06
5.6.120.0070.04517.58
5.6.110.0030.02517.38
5.6.100.0070.02417.43
5.6.90.0110.04117.51
5.6.80.0020.04717.36
5.6.70.0070.00413.92
5.6.60.0070.00714.05
5.6.50.0100.00314.02
5.6.40.0050.00514.06
5.6.30.0000.01213.89
5.6.20.0080.00514.05
5.6.10.0100.00014.27
5.6.00.0000.00914.09
5.5.380.0030.00710.81
5.5.370.0040.00410.96
5.5.360.0030.00610.75
5.5.350.1570.01815.57
5.5.340.0020.02214.24
5.5.330.0030.02715.65
5.5.320.0070.01815.51
5.5.310.0200.03315.68
5.5.300.0060.02214.42
5.5.290.0020.02514.46
5.5.280.0050.02215.88
5.5.270.0040.03215.81
5.5.260.0030.03315.73
5.5.250.0050.04515.58
5.5.240.0180.03315.47
5.5.230.0000.00710.75
5.5.220.0030.00610.64
5.5.210.0110.00010.66
5.5.200.0030.00610.73
5.5.190.0020.00510.63
5.5.180.0090.00010.85
5.5.170.0030.00510.68
5.5.160.0040.00410.32
5.5.150.0080.00010.81
5.5.140.0110.00010.80
5.5.130.0040.00410.84
5.5.120.0030.00610.92
5.5.110.0000.00910.64
5.5.100.0000.00910.83
5.5.90.0050.00510.67
5.5.80.0030.01010.95
5.5.70.0040.00410.44
5.5.60.0000.00910.48
5.5.50.0060.00610.67
5.5.40.0000.01010.79
5.5.30.0080.00010.89
5.5.20.0090.00310.67
5.5.10.0070.00410.75
5.5.00.0030.00310.84

preferences:
50.05 ms | 401 KiB | 5 Q