3v4l.org

run code in 300+ PHP versions simultaneously
<?php $certificates = array( array( 'num' => '111', 'name' => 'cert1' ), array( 'num' => '222', 'name' => 'cert2' ), ); $field = 'name'; $value = 'cert2'; $out = array_filter( $certificates, function($certificates) use ($field, $value) { return $certificates[$field] == $value; } ); print_r($out);

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.40.0110.01118.93
8.3.30.0030.01018.70
8.3.20.0000.00818.60
8.3.10.0090.00620.44
8.3.00.0000.01019.26
8.2.170.0070.00722.96
8.2.160.0070.00720.32
8.2.150.0000.00924.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00719.27
8.2.110.0070.00320.99
8.2.100.0080.00317.84
8.2.90.0030.00619.53
8.2.80.0040.00419.21
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00718.03
8.2.30.0050.00218.09
8.2.20.0000.00819.38
8.2.10.0040.00417.80
8.2.00.0000.00817.75
8.1.270.0070.00024.66
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00422.44
8.1.230.0060.00620.88
8.1.220.0080.00017.77
8.1.210.0090.00019.03
8.1.200.0030.00617.38
8.1.190.0000.00717.52
8.1.180.0000.00918.10
8.1.170.0030.00618.75
8.1.160.0030.00618.89
8.1.150.0000.00718.62
8.1.140.0000.00817.39
8.1.130.0000.00717.85
8.1.120.0040.00417.49
8.1.110.0030.00517.32
8.1.100.0040.00417.37
8.1.90.0040.00417.47
8.1.80.0070.00017.31
8.1.70.0040.00417.39
8.1.60.0000.00717.62
8.1.50.0060.00317.37
8.1.40.0070.00017.55
8.1.30.0000.00717.48
8.1.20.0070.00017.72
8.1.10.0040.00417.59
8.1.00.0040.00417.53
8.0.300.0040.00420.04
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0000.00717.26
8.0.260.0030.00316.74
8.0.250.0040.00416.86
8.0.240.0030.00316.96
8.0.230.0000.00716.94
8.0.220.0000.00716.79
8.0.210.0000.00816.88
8.0.200.0070.00016.88
8.0.190.0070.00016.98
8.0.180.0060.00316.93
8.0.170.0060.00316.89
8.0.160.0000.00716.86
8.0.150.0030.00616.84
8.0.140.0060.00616.88
8.0.130.0030.00313.41
8.0.120.0040.00416.85
8.0.110.0070.00016.88
8.0.100.0000.00716.91
8.0.90.0000.00716.74
8.0.80.0160.00716.93
8.0.70.0050.00316.85
8.0.60.0040.00417.00
8.0.50.0070.00016.76
8.0.30.0040.01317.03
8.0.20.0110.00816.78
8.0.10.0000.00817.00
8.0.00.0110.00916.79
7.4.330.0030.00312.99
7.4.320.0030.00316.46
7.4.300.0030.00316.61
7.4.290.0000.00716.52
7.4.280.0040.00416.41
7.4.270.0000.00716.65
7.4.260.0030.00313.21
7.4.250.0090.00016.53
7.4.240.0000.00716.59
7.4.230.0040.00416.39
7.4.220.0090.01016.54
7.4.210.0080.00816.54
7.4.200.0000.00716.63
7.4.190.0070.00016.47
7.4.160.0090.00616.54
7.4.150.0110.01116.69
7.4.140.0080.00816.36
7.4.130.0090.00716.52
7.4.120.0080.01016.50
7.4.110.0140.00316.29
7.4.100.0130.00316.48
7.4.90.0140.00316.43
7.4.80.0040.01219.39
7.4.70.0110.00716.55
7.4.60.0100.00716.55
7.4.50.0100.00216.49
7.4.40.0120.00616.41
7.4.30.0070.01016.43
7.4.00.0070.00915.19
7.3.330.0060.00013.16
7.3.320.0030.00313.16
7.3.310.0030.00316.30
7.3.300.0060.00016.21
7.3.290.0060.01316.38
7.3.280.0140.00316.29
7.3.270.0100.00716.31
7.3.260.0130.00316.46
7.3.250.0090.00816.39
7.3.240.0110.00816.42
7.3.230.0150.00416.50
7.3.210.0070.01016.50
7.3.200.0110.00616.50
7.3.190.0130.00316.42
7.3.180.0070.01016.40
7.3.170.0100.00816.43
7.3.160.0100.00616.28
7.3.120.0070.00614.95
7.3.110.0090.00914.71
7.3.100.0040.01114.70
7.3.90.0040.00814.93
7.3.80.0090.00914.57
7.3.70.0030.00714.90
7.3.60.0080.00814.78
7.3.50.0000.01214.78
7.3.40.0050.00514.66
7.3.30.0040.01214.78
7.3.20.0060.00316.80
7.3.10.0030.00716.72
7.3.00.0040.00816.71
7.2.330.0060.01216.59
7.2.320.0090.00916.69
7.2.310.0130.01016.45
7.2.300.0100.00716.67
7.2.290.0090.00916.76
7.2.250.0080.01114.88
7.2.240.0070.01414.71
7.2.230.0030.01014.83
7.2.220.0060.01015.30
7.2.210.0150.00314.95
7.2.200.0060.00615.10
7.2.190.0060.01014.80
7.2.180.0070.00715.01
7.2.170.0060.00914.90
7.2.80.0000.01416.58
7.2.60.0030.01316.76
7.2.00.0090.00319.07
7.1.330.0090.00615.75
7.1.320.0000.01115.57
7.1.310.0140.00015.66
7.1.300.0030.01015.82
7.1.290.0030.00615.49
7.1.280.0130.00315.95
7.1.270.0070.01015.79
7.1.260.0070.00315.65
7.1.200.0040.00815.56
7.1.100.0030.01318.13
7.1.70.0000.01016.86
7.1.60.0070.01719.40
7.1.50.0290.00816.47
7.1.00.0070.06322.54
7.0.200.0770.00314.93
7.0.140.0130.06322.21
7.0.120.0070.03722.16
7.0.60.0100.08319.97
7.0.50.0070.07317.84
7.0.40.0070.06720.23
7.0.30.0300.07720.07
7.0.20.0300.07320.30
7.0.10.0070.04320.12
7.0.00.0100.07320.20
5.6.280.0000.07321.15
5.6.210.0000.08720.68
5.6.200.0030.04018.23
5.6.190.0030.05020.53
5.6.180.0100.04320.41
5.6.170.0270.07320.50
5.6.160.0100.08020.45
5.6.150.0070.08018.29
5.6.140.0030.05018.29
5.6.130.0030.08718.19
5.6.120.0070.04021.11
5.6.110.0170.08321.00
5.6.100.0070.04020.89
5.6.90.0130.05320.93
5.6.80.0130.06020.39
5.5.350.0000.04320.53
5.5.340.0070.05317.95
5.5.330.0130.07320.35
5.5.320.0400.07020.20
5.5.310.0230.06020.34
5.5.300.0030.05017.96
5.5.290.0000.05017.92
5.5.280.0200.06720.87
5.5.270.0100.05320.86
5.5.260.0100.04720.79
5.5.250.0130.06720.59
5.5.240.0170.04320.02
5.4.450.0170.06019.57
5.4.440.0070.08319.49
5.4.430.0130.07719.21
5.4.420.0100.07319.56
5.4.410.0100.07719.35
5.4.400.0070.04319.21
5.4.390.0030.06319.14
5.4.380.0030.06018.84
5.4.370.0030.04019.08
5.4.360.0070.07719.00
5.4.350.0100.08019.14
5.4.340.0070.06019.00
5.4.320.0070.04718.85
5.4.310.0170.03719.10
5.4.300.0130.03319.23
5.4.290.0030.08019.07
5.4.280.0100.06019.14
5.4.270.0030.04719.24
5.4.260.0170.03719.20
5.4.250.0100.05319.14
5.4.240.0030.05019.14
5.4.230.0100.07718.91
5.4.220.0070.08018.97
5.4.210.0100.06319.11
5.4.200.0070.06018.87
5.4.190.0170.03719.20
5.4.180.0100.06719.00
5.4.170.0000.06318.99
5.4.160.0170.06318.83
5.4.150.0000.05019.13
5.4.140.0100.03316.41
5.4.130.0170.06716.46
5.4.120.0170.05716.37
5.4.110.0000.07716.37
5.4.100.0030.04016.39
5.4.90.0000.05016.30
5.4.80.0030.03716.44
5.4.70.0000.04716.41
5.4.60.0100.07016.35
5.4.50.0070.05716.46
5.4.40.0070.06316.36
5.4.30.0030.08016.36
5.4.20.0030.06316.51
5.4.10.0030.07016.52
5.4.00.0070.06015.79
5.3.290.0130.06714.68
5.3.280.0100.03314.67
5.3.270.0100.06714.66
5.3.260.0030.04714.64
5.3.250.0000.06714.63
5.3.240.0100.04014.61
5.3.230.0030.06714.74
5.3.220.0070.07314.62
5.3.210.0000.05314.71
5.3.200.0030.07714.61
5.3.190.0200.06714.57
5.3.180.0070.04014.59
5.3.170.0030.04314.63
5.3.160.0030.07714.56
5.3.150.0130.07014.45
5.3.140.0070.03714.55
5.3.130.0000.08714.59
5.3.120.0130.05314.57
5.3.110.0070.05014.55
5.3.100.0070.05713.92
5.3.90.0070.06014.16
5.3.80.0070.06314.16
5.3.70.0030.04713.97
5.3.60.0000.04314.15
5.3.50.0100.05713.90
5.3.40.0030.05314.00
5.3.30.0000.04013.80
5.3.20.0100.03013.70
5.3.10.0000.03713.71
5.3.00.0070.03313.79
5.2.170.0070.06011.13
5.2.160.0070.05011.11
5.2.150.0070.03311.23
5.2.140.0070.02711.09
5.2.130.0000.03010.95
5.2.120.0030.02711.04
5.2.110.0070.02311.04
5.2.100.0030.02711.09
5.2.90.0000.03011.11
5.2.80.0000.03011.08
5.2.70.0000.03311.03
5.2.60.0000.03010.87
5.2.50.0030.02711.02
5.2.40.0000.03011.06
5.2.30.0070.02310.79
5.2.20.0070.02310.92
5.2.10.0030.02710.91
5.2.00.0000.03010.72
5.1.60.0000.02710.00
5.1.50.0000.0279.98
5.1.40.0000.0239.99
5.1.30.0030.03010.38
5.1.20.0000.02710.34
5.1.10.0030.02310.04
5.1.00.0000.0339.97
5.0.50.0030.0208.59
5.0.40.0000.0278.42
5.0.30.0000.0308.25
5.0.20.0000.0208.26
5.0.10.0000.0208.32
5.0.00.0000.0338.25
4.4.90.0000.0238.25
4.4.80.0000.0178.25
4.4.70.0070.0108.25
4.4.60.0000.0178.25
4.4.50.0000.0138.25
4.4.40.0000.0238.25
4.4.30.0000.0178.25
4.4.20.0030.0138.25
4.4.10.0100.0078.25
4.4.00.0000.0278.25
4.3.110.0000.0138.25
4.3.100.0000.0138.25
4.3.90.0030.0108.25
4.3.80.0000.0238.25
4.3.70.0000.0138.25
4.3.60.0000.0138.25
4.3.50.0000.0178.25
4.3.40.0030.0208.25
4.3.30.0000.0138.25
4.3.20.0030.0178.25
4.3.10.0030.0138.25
4.3.00.0000.0138.25

preferences:
25.87 ms | 400 KiB | 5 Q