3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( 'Field1' => 'red', 'Field2' => 'green', 'Field3' => 'blue' ), array( 'Field1' => 'pink', 'Field2' => 'pinkish', 'Field3' => 'barbiecolor' ), array( 'Field1' => 'red', 'Field2' => 'blue', ' Field3' => 'orange' ) ); $searchBy = array( 'Field1' => 'red', 'Field2' => 'blue' ); $find = array_filter($array, function ($a) use($searchBy) { return array_intersect_assoc($searchBy, $a) == $searchBy; }); print_r($find); ?>

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.0100.01018.43
8.3.50.0130.00521.95
8.3.40.0090.00618.46
8.3.30.0130.00718.95
8.3.20.0070.00020.20
8.3.10.0040.00422.10
8.3.00.0080.00022.46
8.2.180.0120.00318.38
8.2.170.0100.00722.96
8.2.160.0120.00620.81
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00319.16
8.2.110.0030.00621.18
8.2.100.0060.00617.72
8.2.90.0050.00317.86
8.2.80.0060.00617.97
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0070.00018.14
8.2.20.0040.00417.72
8.2.10.0040.00417.88
8.2.00.0040.00417.75
8.1.280.0140.00025.92
8.1.270.0080.00023.92
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00023.71
8.1.230.0080.00422.61
8.1.220.0000.00817.74
8.1.210.0060.00318.85
8.1.200.0000.00917.35
8.1.190.0000.00817.53
8.1.180.0000.00918.10
8.1.170.0060.00318.66
8.1.160.0040.00422.02
8.1.150.0000.00718.64
8.1.140.0040.00417.38
8.1.130.0030.00317.74
8.1.120.0030.00317.38
8.1.110.0000.00917.45
8.1.100.0040.00417.41
8.1.90.0040.00417.40
8.1.80.0040.00417.45
8.1.70.0040.00417.46
8.1.60.0000.00817.48
8.1.50.0020.00517.48
8.1.40.0060.00317.51
8.1.30.0040.00417.63
8.1.20.0050.00317.63
8.1.10.0040.00417.41
8.1.00.0000.00717.43
8.0.300.0040.00420.08
8.0.290.0070.00017.18
8.0.280.0030.00318.43
8.0.270.0030.00317.24
8.0.260.0030.00316.87
8.0.250.0000.00716.97
8.0.240.0070.00016.79
8.0.230.0030.00316.99
8.0.220.0050.00316.78
8.0.210.0030.00316.76
8.0.200.0030.00316.83
8.0.190.0000.00816.83
8.0.180.0060.00316.91
8.0.170.0000.00816.86
8.0.160.0040.00416.89
8.0.150.0030.00316.79
8.0.140.0030.00416.86
8.0.130.0000.00713.29
8.0.120.0040.00416.73
8.0.110.0000.00816.83
8.0.100.0040.00416.77
8.0.90.0040.00416.75
8.0.80.0120.00316.89
8.0.70.0040.00416.86
8.0.60.0070.00016.94
8.0.50.0000.00716.82
8.0.30.0090.01317.10
8.0.20.0140.01217.40
8.0.10.0030.00617.01
8.0.00.0150.00316.80
7.4.330.0030.00315.20
7.4.320.0050.00216.50
7.4.300.0000.00616.54
7.4.290.0030.00316.42
7.4.280.0030.00316.61
7.4.270.0030.00316.35
7.4.260.0040.00416.58
7.4.250.0080.00016.39
7.4.240.0030.00516.44
7.4.230.0070.00016.42
7.4.220.0130.01016.59
7.4.210.0100.00616.56
7.4.200.0080.00016.29
7.4.190.0070.00016.71
7.4.160.0040.01216.52
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0090.00916.51
7.4.120.0060.01116.52
7.4.110.0090.00916.42
7.4.100.0120.00616.51
7.4.90.0030.01316.36
7.4.80.0140.00319.39
7.4.70.0130.00316.52
7.4.60.0110.00616.34
7.4.50.0000.00616.58
7.4.40.0070.01122.77
7.4.30.0150.00016.55
7.4.00.0090.00714.94
7.3.330.0000.00513.31
7.3.320.0030.00313.17
7.3.310.0070.00016.12
7.3.300.0000.00616.27
7.3.290.0070.00716.32
7.3.280.0090.01116.29
7.3.270.0040.01317.40
7.3.260.0100.01016.30
7.3.250.0090.01016.36
7.3.240.0090.01316.36
7.3.230.0050.01116.39
7.3.210.0070.01116.38
7.3.200.0140.00319.39
7.3.190.0120.00616.55
7.3.180.0080.00816.21
7.3.170.0190.00016.44
7.3.160.0030.01316.63
7.3.120.0060.01114.66
7.3.110.0080.00914.72
7.3.100.0080.00714.90
7.3.90.0060.00814.85
7.3.80.0050.00614.82
7.3.70.0030.00914.65
7.3.60.0050.00814.89
7.3.50.0040.01014.83
7.3.40.0040.00714.72
7.3.30.0100.00414.62
7.3.20.0060.00816.54
7.3.10.0050.01016.68
7.3.00.0070.00416.66
7.2.330.0060.01216.55
7.2.320.0060.01116.45
7.2.310.0140.00316.68
7.2.300.0180.00016.70
7.2.290.0040.01316.68
7.2.250.0120.00514.93
7.2.240.0060.01214.78
7.2.230.0100.00415.08
7.2.220.0040.01114.88
7.2.210.0060.00714.98
7.2.200.0090.00415.11
7.2.190.0040.00614.94
7.2.180.0050.00714.97
7.2.170.0090.00814.86
7.2.160.0060.00315.06
7.2.150.0000.01116.91
7.2.140.0080.00616.76
7.2.130.0070.00716.98
7.2.120.0000.01616.85
7.2.110.0060.00916.98
7.2.100.0060.00616.71
7.2.90.0100.01016.75
7.2.80.0120.00316.92
7.2.70.0040.01416.66
7.2.60.0020.01416.91
7.2.50.0120.00317.01
7.2.40.0030.00717.01
7.2.30.0080.00816.69
7.2.20.0100.00617.00
7.2.10.0000.01716.97
7.2.00.0030.01218.03
7.1.330.0020.01215.92
7.1.320.0060.00515.65
7.1.310.0050.00715.67
7.1.300.0040.00715.80
7.1.290.0020.01215.82
7.1.280.0040.00715.83
7.1.270.0020.01015.75
7.1.260.0050.00615.70
7.1.250.0000.01015.84
7.1.200.0000.01115.62
7.1.100.0070.00718.18
7.1.70.0000.01017.23
7.1.60.0070.01019.82
7.1.50.0040.01816.70
7.1.00.0000.08022.35
7.0.200.0100.00316.63
7.0.140.0100.06722.07
7.0.110.0130.08020.01
7.0.100.0170.07719.96
7.0.90.0100.08019.80
7.0.80.0130.04719.82
7.0.70.0170.07319.86
7.0.60.0100.07319.95
7.0.50.0100.08720.20
7.0.40.0170.07319.91
7.0.30.0130.07019.91
7.0.20.0130.07719.98
7.0.10.0100.07720.10
7.0.00.0130.07719.98
5.6.280.0070.07020.82
5.6.250.0130.07720.67
5.6.240.0100.05320.81
5.6.230.0100.04320.81
5.6.220.0070.08320.63
5.6.210.0030.04320.63
5.6.200.0130.07320.95
5.6.190.0130.08721.07
5.6.180.0070.08721.08
5.6.170.0070.07721.07
5.6.160.0130.08020.88
5.6.150.0100.08320.94
5.6.140.0100.08721.09
5.6.130.0070.09020.90
5.6.120.0070.08721.09
5.6.110.0130.06721.21
5.6.100.0070.08321.09
5.6.90.0030.09021.11
5.6.80.0030.07720.45
5.6.70.0070.07320.46
5.6.60.0170.06720.61
5.6.50.0170.07320.29
5.6.40.0030.08320.24
5.6.30.0200.06720.50
5.6.20.0100.08020.25
5.6.10.0170.07320.32
5.6.00.0100.07720.28
5.5.380.0170.06720.47
5.5.370.0130.07720.53
5.5.360.0100.07720.32
5.5.350.0030.07720.41
5.5.340.0070.05720.74
5.5.330.0170.07720.79
5.5.320.0030.05720.93
5.5.310.0130.05320.90
5.5.300.0200.06320.86
5.5.290.0030.08720.89
5.5.280.0100.08320.98
5.5.270.0200.07020.90
5.5.260.0030.08320.96
5.5.250.0130.07720.46
5.5.240.0000.05020.36
5.5.230.0030.08720.28
5.5.220.0070.07720.14
5.5.210.0070.07720.28
5.5.200.0170.06720.21
5.5.190.0030.08320.23
5.5.180.0130.07320.23
5.5.160.0100.07320.33
5.5.150.0070.05020.25
5.5.140.0100.08020.34
5.5.130.0070.07720.11
5.5.120.0030.06720.08
5.5.110.0070.07720.25
5.5.100.0130.07019.98
5.5.90.0100.07020.20
5.5.80.0170.06319.98
5.5.70.0100.07720.05
5.5.60.0000.08320.17
5.5.50.0070.07320.11
5.5.40.0030.06319.91
5.5.30.0170.07020.04
5.5.20.0130.07320.18
5.5.10.0030.05320.09
5.5.00.0070.08720.07
5.4.450.0130.06019.31
5.4.440.0130.07319.32
5.4.430.0170.07019.33
5.4.420.0030.05719.33
5.4.410.0200.07019.17
5.4.400.0030.04019.20
5.4.390.0100.07319.14
5.4.380.0100.05019.21
5.4.370.0030.06319.00
5.4.360.0070.08018.97
5.4.350.0100.06719.15
5.4.340.0100.07318.98
5.4.320.0070.08019.06
5.4.310.0130.07318.99
5.4.300.0030.05018.96
5.4.290.0100.07719.09
5.4.280.0100.07319.23
5.4.270.0100.07019.00
5.4.260.0100.07718.98
5.4.250.0070.08019.02
5.4.240.0100.07719.19
5.4.230.0030.05018.98
5.4.220.0070.07319.00
5.4.210.0000.04719.14
5.4.200.0030.06719.30
5.4.190.0070.08019.27
5.4.180.0100.04319.02
5.4.170.0070.07319.13
5.4.160.0100.07719.22
5.4.150.0070.08018.96
5.4.140.0100.08016.44
5.4.130.0070.07016.44
5.4.120.0070.03716.50
5.4.110.0000.06716.57
5.4.100.0100.05316.41
5.4.90.0100.07016.59
5.4.80.0100.06016.74
5.4.70.0130.06316.29
5.4.60.0030.07716.52
5.4.50.0070.04716.30
5.4.40.0070.03716.48
5.4.30.0270.02016.47
5.4.20.0000.05016.28
5.4.10.0000.04016.50
5.4.00.0100.03015.70
5.3.290.0070.06714.89
5.3.280.0130.07314.60
5.3.270.0170.07014.60
5.3.260.0070.07714.58
5.3.250.0130.06014.62
5.3.240.0070.07714.56
5.3.230.0070.07714.82
5.3.220.0100.06014.61
5.3.210.0100.07314.42
5.3.200.0170.05314.79
5.3.190.0100.07014.57
5.3.180.0100.05314.79
5.3.170.0100.07314.55
5.3.160.0100.07314.56
5.3.150.0170.06714.53
5.3.140.0070.04014.57
5.3.130.0000.04014.41
5.3.120.0100.03314.41
5.3.110.0030.03714.55
5.3.100.0100.05713.89
5.3.90.0070.06714.04
5.3.80.0000.04014.03
5.3.70.0100.05014.08
5.3.60.0070.03313.99
5.3.50.0070.03313.96
5.3.40.0030.03713.81
5.3.30.0130.05314.05
5.3.20.0000.03713.71
5.3.10.0070.02713.66
5.3.00.0030.03713.64
5.2.170.0000.05311.09
5.2.160.0030.03310.93
5.2.150.0000.04311.04
5.2.140.0030.02711.06
5.2.130.0070.02311.03
5.2.120.0000.04311.11
5.2.110.0070.04010.99
5.2.100.0070.05311.00
5.2.90.0000.05311.05
5.2.80.0030.02710.98
5.2.70.0000.03011.05
5.2.60.0030.06010.84
5.2.50.0030.02710.80
5.2.40.0000.03010.92
5.2.30.0070.05711.04
5.2.20.0100.02011.04
5.2.10.0000.03310.86
5.2.00.0030.02710.79
5.1.60.0070.0379.90
5.1.50.0030.0239.87
5.1.40.0070.02010.15
5.1.30.0100.02710.27
5.1.20.0000.02710.35
5.1.10.0000.02710.15
5.1.00.0030.03010.22
5.0.50.0030.0179.87
5.0.40.0000.0239.87
5.0.30.0000.0509.87
5.0.20.0030.0179.87
5.0.10.0030.0309.87
5.0.00.0000.0309.87
4.4.90.0030.0209.87
4.4.80.0000.0309.87
4.4.70.0000.0239.87
4.4.60.0000.0179.87
4.4.50.0000.0279.87
4.4.40.0000.0279.87
4.4.30.0000.0179.87
4.4.20.0030.0139.87
4.4.10.0000.0179.87
4.4.00.0030.0239.87
4.3.110.0000.0139.87
4.3.100.0000.0139.87
4.3.90.0070.0079.87
4.3.80.0000.0239.87
4.3.70.0030.0109.87
4.3.60.0070.0179.87
4.3.50.0000.0179.87
4.3.40.0030.0309.87
4.3.30.0030.0109.87
4.3.20.0000.0179.87
4.3.10.0000.0179.87
4.3.00.0000.0239.87

preferences:
42.17 ms | 401 KiB | 5 Q