3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getLnt($zip){ $url = "http://maps.googleapis.com/maps/api/geocode/json?address= ".urlencode($zip)."&sensor=false"; $result_string = file_get_contents($url); $result = json_decode($result_string, true); return $result['results'][0]['geometry']['location']; } $val = getLnt('75204'); echo "Latitude: ".$val['lat']."<br>"; echo "Longitude: ".$val['lng']."<br>"; ?>

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.00718.43
8.3.50.0100.00722.05
8.3.40.0160.00319.34
8.3.30.0090.00619.35
8.3.20.0050.00320.63
8.3.10.0080.00022.22
8.3.00.0050.00322.83
8.2.180.0080.00817.25
8.2.170.0110.00422.96
8.2.160.0110.00320.98
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0080.00019.61
8.2.110.0030.00621.10
8.2.100.0000.01218.41
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0000.00818.29
8.2.50.0050.00318.41
8.2.40.0040.00420.82
8.2.30.0060.00319.45
8.2.20.0040.00417.93
8.2.10.0000.00817.88
8.2.00.0040.00418.01
8.1.280.0150.00725.92
8.1.270.0080.00022.31
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00019.47
8.1.230.0040.00720.56
8.1.220.0050.00317.91
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0060.00317.48
8.1.180.0030.00518.10
8.1.170.0000.00818.82
8.1.160.0040.00419.11
8.1.150.0040.00420.39
8.1.140.0000.00817.66
8.1.130.0000.00717.98
8.1.120.0040.00417.60
8.1.110.0040.00417.57
8.1.100.0000.00717.62
8.1.90.0030.00517.55
8.1.80.0070.00017.54
8.1.70.0030.00317.65
8.1.60.0000.01017.76
8.1.50.0080.00017.54
8.1.40.0050.00317.80
8.1.30.0040.00417.74
8.1.20.0040.00417.79
8.1.10.0000.00817.66
8.1.00.0080.00017.62
8.0.300.0000.00818.77
8.0.290.0000.00917.00
8.0.280.0000.00718.58
8.0.270.0000.00717.53
8.0.260.0000.00617.15
8.0.250.0000.00717.09
8.0.240.0040.00417.20
8.0.230.0040.00417.21
8.0.220.0070.00017.14
8.0.210.0070.00017.11
8.0.200.0040.00417.26
8.0.190.0030.00517.32
8.0.180.0050.00217.07
8.0.170.0000.00817.19
8.0.160.0040.00417.00
8.0.150.0070.00017.08
8.0.140.0000.00717.20
8.0.130.0070.00013.69
8.0.120.0040.00417.17
8.0.110.0000.00817.17
8.0.100.0080.00017.12
8.0.90.0040.00417.11
8.0.80.0090.00617.29
8.0.70.0040.00417.17
8.0.60.0000.00817.24
8.0.50.0050.00317.10
8.0.30.0110.00917.42
8.0.20.0100.01017.50
8.0.10.0000.00817.26
8.0.00.0110.01117.00
7.4.330.0000.00515.00
7.4.320.0030.00316.66
7.4.300.0030.00316.74
7.4.290.0090.00016.57
7.4.280.0030.00316.64
7.4.270.0070.00016.68
7.4.260.0080.00016.71
7.4.250.0000.00916.81
7.4.240.0020.00516.72
7.4.230.0040.00416.73
7.4.220.0120.00616.86
7.4.210.0090.00916.80
7.4.200.0000.00816.70
7.4.190.0060.00316.79
7.4.160.0070.01416.95
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0130.00416.76
7.4.120.0120.00616.76
7.4.110.0050.01416.66
7.4.100.0090.00916.92
7.4.90.0070.01116.66
7.4.80.0100.01319.39
7.4.70.0030.01516.75
7.4.60.0030.01616.82
7.4.50.0050.00516.53
7.4.40.0040.01522.77
7.4.30.0080.00816.72
7.4.00.0100.00715.27
7.3.330.0030.00513.50
7.3.320.0060.00013.41
7.3.310.0080.00016.58
7.3.300.0040.00416.70
7.3.290.0090.00916.64
7.3.280.0100.00316.62
7.3.270.0070.01017.40
7.3.260.0100.00716.69
7.3.250.0100.00916.64
7.3.240.0150.00616.70
7.3.230.0060.01316.57
7.3.210.0090.00916.53
7.3.200.0040.01219.39
7.3.190.0090.01216.80
7.3.180.0030.01316.59
7.3.170.0150.00316.82
7.3.160.0060.01216.62
7.3.120.0110.00615.09
7.3.110.0090.00515.07
7.3.100.0120.00714.99
7.3.90.0100.00215.02
7.3.80.0050.00715.23
7.3.70.0070.00915.01
7.3.60.0120.00514.96
7.3.50.0030.01015.13
7.3.40.0070.00814.97
7.3.30.0100.00714.90
7.3.20.0030.00816.95
7.3.10.0040.01016.83
7.3.00.0040.00916.88
7.2.330.0100.01017.01
7.2.320.0250.00316.70
7.2.310.0070.01617.04
7.2.300.0120.00617.02
7.2.290.0140.00417.06
7.2.250.0140.00715.57
7.2.240.0070.01415.29
7.2.230.0050.01115.47
7.2.220.0120.00515.47
7.2.210.0080.00515.29
7.2.200.0020.01015.35
7.2.190.0070.00715.29
7.2.180.0020.01115.20
7.2.170.0070.00815.41
7.2.160.0040.01515.41
7.2.150.0080.00416.90
7.2.140.0100.01017.30
7.2.130.0120.00617.39
7.2.120.0110.00616.92
7.2.110.0060.01317.41
7.2.100.0090.00917.17
7.2.90.0000.01717.13
7.2.80.0040.01117.35
7.2.70.0070.00717.42
7.2.60.0070.01017.16
7.2.50.0060.01017.02
7.2.40.0100.00616.93
7.2.30.0090.01017.03
7.2.20.0130.00617.34
7.2.10.0060.01217.22
7.2.00.0060.00918.22
7.1.330.0040.01115.79
7.1.320.0080.00816.04
7.1.310.0080.00516.09
7.1.300.0110.00515.86
7.1.290.0050.01215.95
7.1.280.0080.00515.92
7.1.270.0090.00716.17
7.1.260.0060.00816.19
7.1.250.0090.00316.10
7.1.200.0080.00416.18
7.1.100.0030.00918.21
7.1.70.0080.00017.49
7.1.60.0040.02219.82
7.1.50.0140.01117.07
7.1.00.0030.07322.96
7.0.200.0030.00616.93
7.0.140.0030.07322.35
7.0.60.0100.03720.47
7.0.50.0130.07318.16
7.0.40.0030.04320.54
7.0.30.0270.07720.63
7.0.20.0230.08720.56
7.0.10.0230.08320.37
7.0.00.0130.07320.46
5.6.280.0030.07321.34
5.6.210.0100.06021.13
5.6.200.0070.04018.49
5.6.190.0000.04720.98
5.6.180.0330.07721.07
5.6.170.0200.04720.82
5.6.160.0100.07720.84
5.6.150.0100.04318.39
5.6.140.0100.07718.51
5.6.130.0070.08018.64
5.6.120.0100.08321.25
5.6.110.0100.06321.51
5.6.100.0070.08721.25
5.6.90.0200.05021.41
5.6.80.0070.07720.93
5.6.70.4330.03720.77
5.5.350.0400.06720.94
5.5.340.0030.08018.32
5.5.330.0130.07720.83
5.5.320.0170.07320.91
5.5.310.0330.07020.63
5.5.300.0100.04018.34
5.5.290.0070.08018.23
5.5.280.0100.04721.25
5.5.270.0030.04021.09
5.5.260.0070.05721.08
5.5.250.0030.05721.02
5.5.240.0100.08020.59
5.4.450.0070.06719.65
5.4.440.0330.04319.87
5.4.430.0070.05719.60
5.4.420.0070.05719.71
5.4.410.0200.04719.26
5.4.400.0300.06019.20
5.4.390.0170.06719.14
5.4.380.0200.05318.85
5.4.370.0130.05018.86
5.4.360.0100.04719.08
5.4.350.0090.03612.21
5.4.340.0080.04212.21
5.4.320.0070.03612.70
5.4.310.0070.03712.70
5.4.300.0090.03412.70
5.4.290.0070.04412.69
5.4.280.0070.03512.59
5.4.270.0070.03512.59
5.4.260.0200.05719.04
5.4.250.0300.06019.06
5.4.240.0130.06719.01
5.4.230.0130.06319.27
5.4.220.0200.07019.18
5.4.210.0100.06718.79
5.4.200.0200.04319.08
5.4.190.0070.08018.90
5.4.180.0170.05718.91
5.4.170.0000.08318.96
5.4.160.0000.06319.16
5.4.150.0230.07718.80
5.4.140.0100.06716.85
5.4.130.0100.06716.74
5.4.120.0130.05316.76
5.4.110.0130.05716.85
5.4.100.0070.07016.77
5.4.90.0030.07716.85
5.4.80.0070.07716.61
5.4.70.0170.06716.85
5.4.60.0070.05316.84
5.4.50.0100.05316.82
5.4.40.0100.05316.83
5.4.30.0070.05716.86
5.4.20.0130.07016.72
5.4.10.0030.07716.76
5.4.00.0170.04716.18
5.3.290.0060.03912.90
5.3.280.0130.06714.62
5.3.270.0030.09014.71
5.3.260.0070.06314.63
5.3.250.0070.06714.89
5.3.240.0130.06014.85
5.3.230.0070.05714.61
5.3.220.0000.06014.70
5.3.210.0100.05714.67
5.3.200.0230.05714.59
5.3.190.0130.06714.50
5.3.180.0130.06314.59
5.3.170.0100.07314.76
5.3.160.0200.06014.68
5.3.150.0100.05714.70
5.3.140.0030.08314.75
5.3.130.0170.06714.82
5.3.120.0100.05314.64
5.3.110.0100.07014.74
5.3.100.0170.04714.27
5.3.90.0170.06313.95
5.3.80.0070.07014.12
5.3.70.0030.07314.15
5.3.60.0100.06313.94
5.3.50.0070.07014.07
5.3.40.0030.06714.05
5.3.30.0070.05314.10
5.3.20.0070.05013.88
5.3.10.0100.04313.82
5.3.00.0070.06013.75
5.2.170.0070.04311.34
5.2.160.0030.04711.26
5.2.150.0130.05711.42
5.2.140.0030.06311.18
5.2.130.0100.05011.30
5.2.120.0100.05311.14
5.2.110.0070.04711.12
5.2.100.0130.03711.19
5.2.90.0130.05011.20
5.2.80.0130.03311.37
5.2.70.0030.06311.29
5.2.60.0130.05311.16
5.2.50.0070.04311.22
5.2.40.0130.04711.21
5.2.30.0000.06011.15
5.2.20.0070.05311.15
5.2.10.0030.05710.88
5.2.00.0070.04310.66
5.1.60.0100.02710.32
5.1.50.0000.04310.32
5.1.40.0030.04010.32
5.1.30.0130.03310.61
5.1.20.0030.05710.48
5.1.10.0030.04310.32
5.1.00.0100.05010.36
5.0.50.0030.04310.32
5.0.40.0100.03010.32
5.0.30.0070.04710.32
5.0.20.0070.03310.32
5.0.10.0030.03310.32
5.0.00.0000.04710.32
4.4.90.0030.03010.32
4.4.80.0030.03010.32
4.4.70.0100.01710.32
4.4.60.0000.03010.32
4.4.50.0030.03010.32
4.4.40.0000.04710.32
4.4.30.0000.03310.32
4.4.20.0030.02310.32
4.4.10.0030.03010.32
4.4.00.0000.04710.32
4.3.110.0070.02010.32
4.3.100.0030.02010.32
4.3.90.0000.03310.32
4.3.80.0030.03310.32
4.3.70.0100.02710.32
4.3.60.0030.02010.32
4.3.50.0070.02710.32
4.3.40.0100.03710.32
4.3.30.0070.02010.32
4.3.20.0070.02710.32
4.3.10.0070.02310.32
4.3.00.0270.01013.22

preferences:
52.89 ms | 401 KiB | 5 Q