3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = json_decode('[{"id":4,"data":"data1"},{"id":14,"data":"data41"},{"id":14,"data":"data14"}]'); $idSearched = 14; function filter($item){ global $idSearched; return $item->id === $idSearched; } $res = array_filter($array, "filter"); print_r($res);

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.5.10.0120.00920.26
8.5.00.0150.01419.94
8.4.150.0030.00014.05
8.4.140.0120.00917.60
8.4.130.0100.01017.69
8.4.120.0140.00520.80
8.4.110.0110.01022.50
8.4.100.0040.00517.79
8.4.90.0110.01018.58
8.4.80.0070.00519.74
8.4.70.0080.01217.89
8.4.60.0100.01018.84
8.4.50.0140.00620.18
8.4.40.0000.00823.93
8.4.30.0130.00722.51
8.4.20.0120.00917.50
8.4.10.0090.00019.32
8.3.280.0080.01318.31
8.3.270.0100.01016.51
8.3.260.0110.00716.70
8.3.250.0110.00819.11
8.3.240.0110.00816.80
8.3.230.0130.00716.40
8.3.220.0100.00917.10
8.3.210.0100.00716.49
8.3.200.0060.00216.35
8.3.190.0140.00517.18
8.3.180.0110.00816.71
8.3.170.0060.01216.93
8.3.160.0070.00720.45
8.3.150.0150.00418.73
8.3.140.0120.00316.42
8.3.130.0070.01318.22
8.3.120.0120.00018.94
8.3.110.0030.00716.37
8.3.100.0100.01024.06
8.3.90.0110.00726.77
8.3.80.0090.00317.97
8.3.70.0140.00416.38
8.3.60.0070.01416.75
8.3.50.0150.00322.94
8.3.40.0110.00718.70
8.3.30.0120.00318.54
8.3.20.0070.00021.94
8.3.10.0040.00421.77
8.3.00.0060.00319.97
8.2.290.0100.00920.60
8.2.280.0090.01018.43
8.2.270.0110.00717.09
8.2.260.0150.00416.49
8.2.250.0120.00816.32
8.2.240.0080.00017.38
8.2.230.0000.00920.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0070.00418.29
8.2.190.0090.00919.77
8.2.180.0180.00316.50
8.2.170.0090.00622.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.66
8.2.110.0090.00020.26
8.2.100.0070.00417.78
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0000.01017.50
8.2.60.0040.00817.77
8.2.50.0040.00418.10
8.2.40.0050.00322.36
8.2.30.0000.00719.26
8.2.20.0050.00317.56
8.2.10.0000.00718.13
8.2.00.0040.00417.96
8.1.330.0110.00821.66
8.1.320.0100.00916.16
8.1.310.0000.00818.32
8.1.300.0060.00315.84
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0040.00423.77
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00723.62
8.1.230.0060.00620.82
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00817.34
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0000.00718.47
8.1.160.0030.00322.02
8.1.150.0070.00020.89
8.1.140.0040.00419.50
8.1.130.0040.00417.63
8.1.120.0050.00217.45
8.1.110.0000.00717.41
8.1.100.0000.00817.44
8.1.90.0000.00717.41
8.1.80.0040.00317.25
8.1.70.0000.00817.43
8.1.60.0000.00917.53
8.1.50.0000.00817.42
8.1.40.0030.00517.47
8.1.30.0000.00817.47
8.1.20.0000.00817.48
8.1.10.0000.00717.43
8.1.00.0000.00717.34
8.0.300.0080.00018.77
8.0.290.0060.00316.58
8.0.280.0030.00318.40
8.0.270.0050.00216.80
8.0.260.0000.00717.10
8.0.250.0000.00816.87
8.0.240.0030.00316.96
8.0.230.0070.00016.76
8.0.220.0070.00016.76
8.0.210.0040.00416.91
8.0.200.0000.00716.75
8.0.190.0040.00416.91
8.0.180.0040.00416.83
8.0.170.0070.00016.84
8.0.160.0000.00716.91
8.0.150.0040.00416.86
8.0.140.0000.00716.80
8.0.130.0030.00313.24
8.0.120.0040.00416.82
8.0.110.0030.00516.89
8.0.100.0050.00316.64
8.0.90.0030.00316.85
8.0.80.0070.01016.89
8.0.70.0040.00416.89
8.0.60.0000.00816.68
8.0.50.0070.00016.77
8.0.30.0080.01116.90
8.0.20.0110.01217.40
8.0.10.0050.00316.86
8.0.00.0130.00316.66
7.4.330.0000.00515.09
7.4.320.0030.00316.41
7.4.300.0000.00616.61
7.4.290.0070.00416.57
7.4.280.0040.00416.60
7.4.270.0050.00316.61
7.4.260.0030.00316.61
7.4.250.0030.00316.57
7.4.240.0000.00716.36
7.4.230.0000.00716.34
7.4.220.0060.01616.67
7.4.210.0040.01116.64
7.4.200.0000.00716.34
7.4.160.0060.00916.53
7.4.150.0120.00817.40
7.4.140.0090.01517.86
7.4.130.0100.00716.46
7.4.120.0080.01116.50
7.4.110.0070.01116.59
7.4.100.0110.00616.39
7.4.90.0100.00716.60
7.4.80.0090.00919.39
7.4.70.0140.00316.51
7.4.60.0130.00316.55
7.4.50.0060.01216.42
7.4.40.0170.00716.47
7.4.30.0150.00616.26
7.4.00.0070.00714.93
7.3.330.0000.00513.21
7.3.320.0000.00513.16
7.3.310.0070.00016.23
7.3.300.0040.00416.23
7.3.290.0070.00816.25
7.3.280.0080.00916.23
7.3.270.0120.01217.40
7.3.260.0070.01216.47
7.3.250.0110.00616.22
7.3.240.0140.00316.36
7.3.230.0120.00616.39
7.3.210.0080.01016.36
7.3.200.0080.01116.12
7.3.190.0100.01016.20
7.3.180.0110.00916.29
7.3.170.0080.00816.36
7.3.160.0100.00816.32
7.2.330.0140.00316.63
7.2.320.0070.01016.54
7.2.310.0100.01016.40
7.2.300.0070.01016.66
7.2.290.0090.00916.43
7.2.60.0100.00316.92
7.2.00.0060.00819.41
7.1.200.0040.01115.88
7.1.70.0040.00417.16
7.1.60.0070.00719.75
7.1.00.0030.07722.31
7.0.200.0070.00314.51
7.0.90.0170.05719.91
7.0.80.0070.06319.93
7.0.70.0300.06019.93
7.0.60.0130.07319.91
7.0.50.0070.07022.10
7.0.40.0170.05722.18
7.0.30.0100.06722.13
7.0.20.0170.06722.17
7.0.10.0130.06722.12
7.0.00.0130.05322.07
5.6.240.0170.06720.58
5.6.230.0030.07320.70
5.6.220.0270.06720.77
5.6.210.0070.08720.51
5.6.200.0000.08021.09
5.6.190.0130.06020.98
5.6.180.0170.06021.05
5.6.170.0130.05720.99
5.6.160.0130.08021.02
5.6.150.0130.06721.02
5.6.140.0170.05721.18
5.6.130.0070.09021.00
5.6.120.0170.08321.08
5.6.110.0130.06721.12
5.6.100.0130.08020.98
5.6.90.0070.09021.02
5.6.80.0030.06020.38
5.6.70.0170.05320.37
5.6.60.0000.06720.35
5.6.50.0130.06320.43
5.6.40.0030.07720.34
5.6.30.0100.05320.46
5.6.20.0030.06320.50
5.6.10.0030.06720.53
5.6.00.0170.07020.44

preferences:
163.8 ms | 403 KiB | 5 Q