3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myAddress = "15502 S Memorial Dr, Bixby, OK 74445"; $myKey = "Fmjtd%7Cluu82q6y2q%2Can%3Do5-94txl0"; function GetJsonFeed() { global $myAddress, $myKey; //$url = "http://www.mapquestapi.com/geocoding/v1/address?key=" . $myKey . "&callback=renderOptions&inFormat=kvp&outFormat=json&location=" . $myAddress . "&maxResults=1"; $url = @file_get_contents('http://open.mapquestapi.com/geocoding/v1/address?key=' . $myKey . '&location=Lancaster,PA'); echo $url . "<br>"; $mapresponse = file_get_contents(rawurlencode($url), "r"); return json_decode($mapresponse); } $json = GetJsonFeed(); $jsonArr = json_decode($json); var_dump(json_decode($json, true)); ?>

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.0080.01116.63
8.3.50.0090.00722.07
8.3.40.0120.00319.13
8.3.30.0120.00319.29
8.3.20.0000.00820.45
8.3.10.0040.00422.10
8.3.00.0000.00821.26
8.2.180.0100.00618.88
8.2.170.0040.01422.96
8.2.160.0110.00422.21
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0060.00326.16
8.2.120.0030.00519.79
8.2.110.0030.00619.57
8.2.100.0040.00818.03
8.2.90.0000.00918.09
8.2.80.0030.00519.46
8.2.70.0060.00317.75
8.2.60.0000.00917.75
8.2.50.0050.00317.63
8.2.40.0030.00518.28
8.2.30.0030.00618.17
8.2.20.0080.00018.07
8.2.10.0080.00018.38
8.2.00.0040.00417.97
8.1.280.0040.01525.92
8.1.270.0040.00420.91
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.78
8.1.230.0070.00422.88
8.1.220.0050.00517.91
8.1.210.0040.00418.82
8.1.200.0060.00317.60
8.1.190.0060.00317.48
8.1.180.0060.00318.10
8.1.170.0030.00618.90
8.1.160.0040.00422.23
8.1.150.0030.00519.14
8.1.140.0080.00017.66
8.1.130.0070.00017.95
8.1.120.0040.00417.61
8.1.110.0040.00417.73
8.1.100.0050.00217.57
8.1.90.0030.00617.62
8.1.80.0000.00817.61
8.1.70.0070.00017.62
8.1.60.0060.00317.73
8.1.50.0060.00317.68
8.1.40.0080.00017.80
8.1.30.0060.00317.83
8.1.20.0030.00617.86
8.1.10.0000.00717.64
8.1.00.0000.00817.66
8.0.300.0040.00420.28
8.0.290.0060.00317.13
8.0.280.0080.00018.72
8.0.270.0040.00417.53
8.0.260.0030.00317.45
8.0.250.0020.00517.28
8.0.240.0060.00317.20
8.0.230.0030.00317.31
8.0.220.0000.00717.21
8.0.210.0110.00017.25
8.0.200.0000.00617.21
8.0.190.0070.00017.25
8.0.180.0000.00717.19
8.0.170.0040.00417.16
8.0.160.0000.00717.13
8.0.150.0070.00017.23
8.0.140.0050.00217.07
8.0.130.0030.00313.72
8.0.120.0080.00017.18
8.0.110.0030.00517.24
8.0.100.0000.00817.20
8.0.90.0000.00917.38
8.0.80.0150.00917.18
8.0.70.0050.00317.36
8.0.60.0080.00017.18
8.0.50.0040.00417.24
8.0.30.0190.00317.32
8.0.20.0090.01117.40
8.0.10.0090.00017.26
8.0.00.0140.00617.04
7.4.330.0000.00615.35
7.4.320.0070.00016.68
7.4.300.0040.00416.67
7.4.290.0000.00716.68
7.4.280.0030.00716.61
7.4.270.0070.00016.86
7.4.260.0070.00416.54
7.4.250.0050.00316.77
7.4.240.0030.00516.82
7.4.230.0070.00016.81
7.4.220.0030.02616.74
7.4.210.0120.00916.81
7.4.200.0050.00216.61
7.4.160.0100.00716.59
7.4.150.0190.00917.40
7.4.140.0130.01017.86
7.4.130.0050.01716.80
7.4.120.0090.00916.84
7.4.110.0230.00016.86
7.4.100.0030.01616.98
7.4.90.0060.01216.61
7.4.80.0120.00616.71
7.4.70.0110.00816.93
7.4.60.0100.00716.64
7.4.50.0000.00816.86
7.4.40.0120.00916.80
7.4.30.0060.01616.96
7.4.00.0030.01415.06
7.3.330.0060.00013.44
7.3.320.0120.00413.45
7.3.310.0000.00816.73
7.3.300.0070.00016.59
7.3.290.0050.01016.67
7.3.280.0120.00616.70
7.3.270.0090.00917.40
7.3.260.0100.01016.67
7.3.250.0150.01116.68
7.3.240.0090.01516.88
7.3.230.0030.01516.66
7.3.210.0120.00816.80
7.3.200.0030.02019.39
7.3.190.0130.00316.69
7.3.180.0150.00916.77
7.3.170.0090.00916.70
7.3.160.0040.01516.65
7.2.330.0100.01017.00
7.2.320.0070.01017.05
7.2.310.0190.00717.00
7.2.300.0060.01216.70
7.2.290.0150.00917.03
7.2.00.0060.00619.86
7.1.100.0070.00318.20
7.1.70.0000.00817.55
7.1.60.0130.01319.46
7.1.50.0100.01316.79
7.1.00.0070.07322.96
7.0.200.0000.00817.15
7.0.140.0100.07022.35
7.0.60.0030.08720.18
7.0.50.0130.07318.15
7.0.40.0070.09020.57
7.0.30.0300.03320.47
7.0.20.0270.06720.48
7.0.10.0070.09020.49
7.0.00.0070.04320.49
5.6.280.0100.07021.38
5.6.210.0070.07720.86
5.6.200.0030.04018.40
5.6.190.0170.03320.95
5.6.180.0430.04021.07
5.6.170.0270.03020.86
5.6.160.0130.07720.83
5.6.150.0030.08318.39
5.6.140.0000.04318.54
5.6.130.0100.05018.48
5.6.120.0130.08021.28
5.6.110.0130.08321.51
5.6.100.0070.08321.42
5.6.90.0200.08021.41
5.6.80.0100.05320.89
5.5.350.0270.07320.85
5.5.340.0000.05018.37
5.5.330.0170.08020.93
5.5.320.0070.08020.75
5.5.310.0370.07020.62
5.5.300.0030.08318.41
5.5.290.0100.08018.25
5.5.280.0100.08021.16
5.5.270.0030.06321.29
5.5.260.0070.05321.25
5.5.250.0230.07021.21
5.5.240.0130.07320.64
5.4.450.0600.06719.62
5.4.440.0870.05319.63
5.4.430.0400.05019.70
5.4.420.0770.05319.68
5.4.410.1530.05319.51
5.4.400.0830.06319.23
5.4.390.0130.07319.21
5.4.380.0200.07018.73
5.4.370.0130.06018.84
5.4.360.0170.05019.16
5.4.350.0100.07018.71
5.4.340.0270.04319.08
5.4.320.0200.05018.92
5.4.310.0100.07018.73
5.4.300.0230.04719.07
5.4.290.0230.06318.77
5.4.280.0200.06319.03
5.4.270.0070.06019.03
5.4.260.0230.06018.84
5.4.250.0200.07019.07
5.4.240.0200.06018.87
5.4.230.0170.07018.77
5.4.220.0300.05018.69
5.4.210.0170.05719.04
5.4.200.0200.05016.94
5.4.190.0170.05019.06
5.4.180.0130.06018.86
5.4.170.0200.04718.86
5.4.160.0200.05318.96
5.4.150.0170.05318.98
5.4.140.0200.05016.47
5.4.130.0170.04716.54
5.4.120.0100.05716.46
5.4.110.0200.04316.54
5.4.100.0170.06716.46
5.4.90.0300.05316.45
5.4.80.0130.06316.61
5.4.70.0230.06316.52
5.4.60.0230.05716.53
5.4.50.0200.06016.43
5.4.40.0170.06716.66
5.4.30.0300.05016.58
5.4.20.0170.05316.44
5.4.10.0200.04316.47
5.4.00.0100.05715.95
5.3.290.0200.05014.85
5.3.280.0200.05014.88
5.3.270.0230.06314.89
5.3.260.0230.04314.84
5.3.250.0170.05314.84
5.3.240.0170.05014.83
5.3.230.0200.06314.84
5.3.220.0100.06314.84
5.3.210.0230.07014.75
5.3.200.0170.07014.80
5.3.190.0130.07014.86
5.3.180.0030.06014.71
5.3.170.0230.05014.66
5.3.160.0170.06314.67
5.3.150.0230.06314.84
5.3.140.0070.07714.68
5.3.130.0100.06314.70
5.3.120.0230.05314.86
5.3.110.0270.06014.70
5.3.100.0130.05714.18
5.3.90.0200.05014.15
5.3.80.0100.05714.24
5.3.70.0170.06714.14
5.3.60.0100.06314.23
5.3.50.0130.05314.18
5.3.40.0070.07714.13
5.3.30.0170.06714.21
5.3.20.0200.04713.93
5.3.10.0070.06013.75
5.3.00.0100.06713.88
5.2.170.0130.04011.41
5.2.160.0130.05311.38
5.2.150.0070.06011.41
5.2.140.0100.04711.36
5.2.130.0130.04011.25
5.2.120.0130.04311.23
5.2.110.0100.04011.36
5.2.100.0170.03311.29
5.2.90.0070.04311.38
5.2.80.0100.04311.39
5.2.70.0230.03011.34
5.2.60.0130.04011.23
5.2.50.0070.04311.12
5.2.40.0070.04311.12
5.2.30.0170.03311.08
5.2.20.0100.04011.11
5.2.10.0070.04311.10
5.2.00.0100.04010.95
5.1.60.0070.03710.25
5.1.50.0070.04010.09
5.1.40.0170.03010.23
5.1.30.0100.03310.57
5.1.20.0170.03710.48
5.1.10.0100.04310.35
5.1.00.0070.04010.21
5.0.50.0170.0238.80
5.0.40.0130.0238.64
5.0.30.0070.0438.47
5.0.20.0100.0238.30
5.0.10.0070.0308.42
5.0.00.0030.0538.23
4.4.90.0130.0176.05
4.4.80.0030.0236.04
4.4.70.0100.0175.95
4.4.60.0030.0236.03
4.4.50.0030.0235.94
4.4.40.0030.0376.05
4.4.30.0030.0306.06
4.4.20.0200.0306.09
4.4.10.0100.0176.01
4.4.00.0070.0336.11
4.3.110.0000.0275.97
4.3.100.0000.0276.02
4.3.90.0000.0235.88
4.3.80.0030.0375.89
4.3.70.0030.0235.99
4.3.60.0000.0275.88
4.3.50.0000.0275.84
4.3.40.0030.0335.81
4.3.30.0070.0174.95
4.3.20.0000.0234.95
4.3.10.0100.0174.95
4.3.00.0070.01714.62

preferences:
51.49 ms | 401 KiB | 5 Q