3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_decode('[ { "zipcode": 35004, "state abbreviation": "AL", "latitude": 33.606379, "longitude": -86.50249, "city": "Moody", "state": "Alabama" }, { "zipcode": 35005, "state abbreviation": "AL", "latitude": 33.606379, "longitude": -86.50249, "city": "Moody", "state": "Alabama" } ]'); $zipcode = 35004; $index = array_search($zipcode, array_column($json, 'zipcode')); print_r($json[$index]);

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.4.10.0100.01019.68
8.3.140.0110.00416.73
8.3.130.0040.00418.42
8.3.120.0040.00718.80
8.3.110.0060.00316.50
8.3.100.0110.00016.37
8.3.90.0080.00026.77
8.3.80.0040.00416.63
8.3.70.0140.00716.58
8.3.60.0160.00016.50
8.3.50.0160.00523.56
8.3.40.0060.00922.23
8.3.30.0100.00718.70
8.3.20.0080.00024.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.260.0100.00718.77
8.2.250.0110.00418.63
8.2.240.0040.00417.36
8.2.230.0030.00620.94
8.2.220.0100.01037.54
8.2.210.0070.00026.77
8.2.200.0090.00016.75
8.2.190.0110.00716.58
8.2.180.0130.01025.92
8.2.170.0140.00318.84
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0030.00721.07
8.2.100.0070.00417.72
8.2.90.0060.00317.84
8.2.80.0060.00322.25
8.2.70.0040.00417.63
8.2.60.0060.00317.75
8.2.50.0000.00817.63
8.2.40.0070.00019.36
8.2.30.0040.00419.25
8.2.20.0030.00517.94
8.2.10.0000.00719.21
8.2.00.0050.00319.13
8.1.310.0060.00318.35
8.1.300.0090.00016.29
8.1.290.0040.00430.84
8.1.280.0170.00325.92
8.1.270.0050.00322.17
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00423.88
8.1.230.0000.01122.66
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0050.00318.94
8.1.150.0000.00718.88
8.1.140.0000.00718.84
8.1.130.0030.00320.03
8.1.120.0040.00317.42
8.1.110.0030.00717.46
8.1.100.0030.00417.40
8.1.90.0030.00517.39
8.1.80.0040.00417.45
8.1.70.0030.00617.37
8.1.60.0090.00017.59
8.1.50.0060.00317.44
8.1.40.0040.00417.37
8.1.30.0040.00417.64
8.1.20.0000.00817.49
8.1.10.0000.00817.41
8.1.00.0040.00717.44
8.0.300.0050.00319.86
8.0.290.0070.00016.63
8.0.280.0040.00418.39
8.0.270.0030.00616.66
8.0.260.0030.00618.38
8.0.250.0000.00716.80
8.0.240.0030.00316.82
8.0.230.0030.00316.89
8.0.220.0030.00316.89
8.0.210.0000.00716.88
8.0.200.0060.00016.86
8.0.190.0090.00016.91
8.0.180.0000.00716.76
8.0.170.0060.00316.86
8.0.160.0020.00516.75
8.0.150.0060.00316.66
8.0.140.0060.00316.84
8.0.130.0000.00613.29
8.0.120.0000.00716.79
8.0.110.0030.00416.84
8.0.100.0000.00816.74
8.0.90.0050.00216.83
8.0.80.0080.00616.81
8.0.70.0030.00616.83
8.0.60.0070.00016.69
8.0.50.0040.00416.78
8.0.30.0090.00617.27
8.0.20.0080.01216.96
8.0.10.0070.00016.93
8.0.00.0030.01616.89
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0070.00016.55
7.4.290.0070.00016.30
7.4.280.0040.00416.38
7.4.270.0000.00816.48
7.4.260.0030.00313.24
7.4.250.0030.00316.41
7.4.240.0000.00816.60
7.4.230.0030.00316.45
7.4.220.0050.00216.59
7.4.210.0050.01016.45
7.4.200.0000.00716.52
7.4.130.0070.01416.38
7.4.120.0200.00316.32
7.4.110.0080.00816.25
7.4.100.0130.00916.31
7.4.90.0110.01516.39
7.4.80.0110.01116.59
7.4.70.0200.01216.23
7.4.60.0240.00616.42
7.4.50.0270.00716.44
7.4.40.0280.00916.52
7.4.30.0230.01216.39
7.4.20.0200.00916.54
7.4.10.0250.00816.40
7.4.00.0160.00316.40
7.3.330.0030.00316.20
7.3.320.0000.00613.20
7.3.310.0070.00016.05
7.3.300.0000.00716.21
7.3.290.0090.00716.22
7.3.260.0120.00616.51
7.3.230.0150.00916.39
7.3.220.0100.00916.46
7.3.210.0130.00716.46
7.3.200.0170.00416.55
7.3.190.0310.00416.14
7.3.180.0290.00516.34
7.3.170.0190.01216.28
7.3.160.0310.00416.52
7.3.150.0340.00316.45
7.3.140.0230.01216.21
7.3.130.0170.01716.37
7.3.120.0240.01216.19
7.3.110.0220.01216.21
7.3.100.0230.00916.19
7.3.90.0230.01216.41
7.3.80.0310.00016.51
7.3.70.0220.00916.45
7.3.60.0240.00516.34
7.3.50.0210.01116.45
7.3.40.0050.01316.24
7.3.30.0110.01116.25
7.3.20.0150.01216.30
7.3.10.0150.00416.09
7.3.00.0070.01416.41
7.2.330.0170.00716.25
7.2.320.0130.00616.37
7.2.310.0270.00616.55
7.2.300.0290.00516.27
7.2.290.0280.00416.24
7.2.280.0260.00716.36
7.2.270.0270.01116.50
7.2.260.0300.01016.38
7.2.250.0330.00316.21
7.2.240.0180.01516.36
7.2.230.0200.01516.52
7.2.220.0220.01116.63
7.2.210.0210.00916.59
7.2.200.0210.01416.70
7.2.190.0120.01816.53
7.2.180.0140.00516.68
7.2.170.0120.00916.59
7.2.160.0210.00016.29
7.2.150.0260.01916.48
7.2.140.0110.01116.62
7.2.130.0040.02216.58
7.2.120.0130.01316.50
7.2.110.0100.01516.66
7.2.100.0080.01316.43
7.2.90.0030.01816.45
7.2.80.0100.01516.55
7.2.70.0120.01116.36
7.2.60.0110.01116.41
7.2.50.0110.01416.39
7.2.40.0180.00716.53
7.2.30.0180.00516.62
7.2.20.0150.00516.35
7.2.10.0110.00916.40
7.2.00.0120.00716.55

preferences:
26.92 ms | 403 KiB | 5 Q