3v4l.org

run code in 300+ PHP versions simultaneously
<?php // some address values $client_address = '11010 Langton Arms Court'; $client_city = 'Oakton'; $client_state = 'VA'; $client_zip = '22124'; // building the JSON URL string for Google API call $g_address = str_replace(' ', '+', trim($client_address)).","; $g_city = '+'.str_replace(' ', '+', trim($client_city)).","; $g_state = '+'.str_replace(' ', '+', trim($client_state)); $g_zip = isset($client_zip)? '+'.str_replace(' ', '', trim($client_zip)) : ''; $g_addr_str = $g_address.$g_city.$g_state.$g_zip; $url = "http://maps.google.com/maps/api/geocode/json? address=$g_addr_str&sensor=false"; // Parsing the JSON response from the Google Geocode API to get exact map coordinates: // latitude , longitude (see the Google doc. for the complete data return here: // https://developers.google.com/maps/documentation/geocoding/.) $jsonData = file_get_contents($url); $data = json_decode($jsonData); $xlat = $data->{'results'}[0]->{'geometry'}->{'location'}->{'lat'}; $xlong = $data->{'results'}[0]->{'geometry'}->{'location'}->{'lng'}; echo $xlat.",".$xlong;

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.0120.00918.68
8.3.50.0100.00922.05
8.3.40.0040.01119.17
8.3.30.0130.00319.05
8.3.20.0040.00420.63
8.3.10.0000.00821.04
8.3.00.0030.00622.21
8.2.180.0090.00916.75
8.2.170.0150.00622.96
8.2.160.0070.01122.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00020.98
8.2.120.0050.00326.35
8.2.110.0030.00619.49
8.2.100.0040.00818.15
8.2.90.0030.00519.42
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0080.00018.05
8.2.50.0000.00818.09
8.2.40.0070.00020.84
8.2.30.0000.00719.71
8.2.20.0030.00618.08
8.2.10.0000.00818.47
8.2.00.0080.00018.48
8.1.280.0040.01525.92
8.1.270.0070.00322.23
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0030.00622.75
8.1.230.0000.01217.89
8.1.220.0000.00817.89
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0000.01018.80
8.1.160.0070.00021.02
8.1.150.0040.00420.84
8.1.140.0000.00819.75
8.1.130.0000.00717.83
8.1.120.0030.00517.59
8.1.110.0040.00417.61
8.1.100.0050.00317.57
8.1.90.0040.00417.65
8.1.80.0040.00417.60
8.1.70.0050.00317.61
8.1.60.0030.00617.71
8.1.50.0040.00417.57
8.1.40.0040.00417.77
8.1.30.0080.00017.78
8.1.20.0040.00417.71
8.1.10.0040.00417.73
8.1.00.0080.00417.65
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0050.00218.59
8.0.270.0070.00017.58
8.0.260.0040.00417.54
8.0.250.0000.00817.30
8.0.240.0070.00017.13
8.0.230.0000.00717.36
8.0.220.0000.00717.00
8.0.210.0000.00717.17
8.0.200.0000.00717.18
8.0.190.0040.00417.26
8.0.180.0040.00417.07
8.0.170.0000.00817.20
8.0.160.0000.00717.36
8.0.150.0000.00717.12
8.0.140.0000.00717.10
8.0.130.0090.00013.72
8.0.120.0060.00317.13
8.0.110.0090.00017.29
8.0.100.0000.00817.16
8.0.90.0030.00517.23
8.0.80.0040.01817.21
8.0.70.0040.00417.30
8.0.60.0040.00417.24
8.0.50.0000.00717.13
8.0.30.0090.00817.32
8.0.20.0090.01117.41
8.0.10.0000.00817.14
8.0.00.0140.00417.14
7.4.330.0060.00017.09
7.4.320.0000.00716.65
7.4.300.0000.00716.65
7.4.290.0040.00416.71
7.4.280.0070.00016.70
7.4.270.0070.00016.69
7.4.260.0060.00316.73
7.4.250.0040.00416.72
7.4.240.0020.00516.89
7.4.230.0030.00316.88
7.4.220.0080.01216.70
7.4.210.0110.00416.78
7.4.200.0050.00216.88
7.4.160.0110.01116.78
7.4.150.0120.01517.40
7.4.140.0140.01317.86
7.4.130.0140.00916.85
7.4.120.0120.00716.78
7.4.110.0150.00816.85
7.4.100.0070.01716.88
7.4.90.0040.01416.64
7.4.80.0090.01319.39
7.4.70.0120.00616.82
7.4.60.0100.00916.79
7.4.50.0070.01116.79
7.4.40.0140.00616.84
7.4.30.0080.01516.73
7.4.00.0040.01115.25
7.3.330.0000.00513.49
7.3.320.0000.00613.71
7.3.310.0040.00416.71
7.3.300.0000.00816.76
7.3.290.0070.00916.67
7.3.280.0120.00716.69
7.3.270.0090.00917.40
7.3.260.0110.01416.63
7.3.250.0100.01016.61
7.3.240.0120.00616.87
7.3.230.0130.00716.75
7.3.210.0070.01116.98
7.3.200.0080.01116.97
7.3.190.0070.01016.68
7.3.180.0070.01016.68
7.3.170.0090.00916.71
7.3.160.0130.00516.68
7.2.330.0090.00916.95
7.2.320.0050.01416.97
7.2.310.0060.01216.64
7.2.300.0120.00617.05
7.2.290.0140.00417.14
7.2.60.0090.00316.97
7.2.00.0090.00919.97
7.1.200.0030.01015.73
7.1.100.0140.00018.66
7.1.70.0050.00517.36
7.1.60.0060.01919.19
7.1.50.0070.01417.47
7.1.00.0170.06322.63
7.0.200.0350.00715.17
7.0.60.0170.08321.95
7.0.50.0100.06018.35
7.0.40.0070.05320.51
7.0.30.0230.04320.48
7.0.20.0230.07320.51
7.0.10.0130.05320.43
7.0.00.0130.03320.54
5.6.280.0030.06321.34
5.6.210.0070.08020.92
5.6.200.0100.05018.46
5.6.190.0100.08021.15
5.6.180.0330.05021.05
5.6.170.0300.07720.87
5.6.160.0070.06320.86
5.6.150.0170.06018.52
5.6.140.0100.06718.56
5.6.130.0100.08018.50
5.6.120.0070.06321.51
5.6.110.0100.07721.50
5.6.100.0130.06321.28
5.6.90.0000.04721.40
5.6.80.0130.04320.73
5.5.350.0270.07320.95
5.5.340.0130.06018.30
5.5.330.0000.04720.93
5.5.320.0230.08020.61
5.5.310.0230.08020.62
5.5.300.0070.06018.36
5.5.290.0100.05718.23
5.5.280.0100.04321.25
5.5.270.0030.05321.01
5.5.260.0030.08021.09
5.5.250.0100.08020.82
5.5.240.0030.03020.45

preferences:
61.77 ms | 401 KiB | 5 Q