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 = 'cert1'; $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.60.0140.00718.30
8.3.50.0100.00916.48
8.3.40.0110.00418.64
8.3.30.0070.00718.55
8.3.20.0040.00418.77
8.3.10.0060.00320.56
8.3.00.0030.00519.38
8.2.180.0100.00716.63
8.2.170.0100.00322.96
8.2.160.0070.01418.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00320.44
8.2.110.0040.00419.30
8.2.100.0080.00417.84
8.2.90.0080.00017.63
8.2.80.0050.00317.97
8.2.70.0000.00818.05
8.2.60.0030.00618.03
8.2.50.0080.00018.10
8.2.40.0050.00520.56
8.2.30.0000.00918.10
8.2.20.0030.00619.40
8.2.10.0080.00017.75
8.2.00.0040.00417.70
8.1.280.0090.00625.92
8.1.270.0090.00023.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00619.13
8.1.230.0070.00420.84
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0050.00218.88
8.1.150.0000.00718.64
8.1.140.0040.00417.38
8.1.130.0000.00717.82
8.1.120.0040.00417.51
8.1.110.0040.00417.38
8.1.100.0020.00517.43
8.1.90.0030.00517.43
8.1.80.0070.00017.48
8.1.70.0000.00817.45
8.1.60.0040.00417.62
8.1.50.0030.00617.39
8.1.40.0050.00217.52
8.1.30.0000.00817.54
8.1.20.0080.00017.63
8.1.10.0000.00717.55
8.1.00.0030.00617.53
8.0.300.0000.00721.95
8.0.290.0030.00616.58
8.0.280.0070.00018.46
8.0.270.0000.00717.10
8.0.260.0080.00016.88
8.0.250.0040.00416.96
8.0.240.0040.00416.82
8.0.230.0000.00816.89
8.0.220.0030.00316.93
8.0.210.0000.00716.77
8.0.200.0060.00016.88
8.0.190.0040.00416.88
8.0.180.0050.00316.88
8.0.170.0040.00416.84
8.0.160.0030.00316.93
8.0.150.0000.00916.71
8.0.140.0080.00016.87
8.0.130.0000.00613.36
8.0.120.0070.00016.84
8.0.110.0020.00516.74
8.0.100.0040.00416.90
8.0.90.0000.00716.77
8.0.80.0090.00616.79
8.0.70.0040.00316.84
8.0.60.0050.00316.91
8.0.50.0000.00816.76
8.0.30.0200.00317.16
8.0.20.0120.00617.06
8.0.10.0050.00317.06
8.0.00.0090.00816.92
7.4.330.0000.00512.92
7.4.320.0060.00016.63
7.4.300.0060.00016.60
7.4.290.0030.00316.50
7.4.280.0040.00416.59
7.4.270.0000.00716.55
7.4.260.0030.00313.22
7.4.250.0020.00516.41
7.4.240.0070.00016.50
7.4.230.0040.00416.67
7.4.220.0140.00316.56
7.4.210.0130.00316.56
7.4.200.0070.00016.36
7.4.190.0070.00016.46
7.4.160.0040.01116.46
7.4.150.0090.00916.52
7.4.140.0090.00916.38
7.4.130.0100.00716.38
7.4.120.0070.01316.39
7.4.110.0090.01216.66
7.4.100.0120.00416.46
7.4.90.0140.00416.46
7.4.80.0040.01219.39
7.4.70.0060.01116.54
7.4.60.0140.00216.66
7.4.50.0000.00416.43
7.4.40.0120.00616.60
7.4.30.0060.01016.46
7.4.00.0030.01315.13
7.3.330.0040.00413.08
7.3.320.0050.00013.20
7.3.310.0030.00316.30
7.3.300.0040.00416.34
7.3.290.0050.01016.29
7.3.280.0080.00616.24
7.3.270.0070.01116.40
7.3.260.0100.00716.38
7.3.250.0110.01216.61
7.3.240.0110.00616.52
7.3.230.0030.01316.36
7.3.210.0100.00616.44
7.3.200.0120.00416.28
7.3.190.0070.01016.28
7.3.180.0100.00616.49
7.3.170.0070.01416.59
7.3.160.0100.00716.38
7.3.120.0090.00914.92
7.3.110.0070.01014.85
7.3.100.0030.00914.70
7.3.90.0060.00614.48
7.3.80.0100.00615.04
7.3.70.0040.00414.80
7.3.60.0040.01114.78
7.3.50.0090.00914.94
7.3.40.0030.01014.86
7.3.30.0030.01014.94
7.3.20.0080.00516.42
7.3.10.0060.00816.49
7.3.00.0040.00916.50
7.2.330.0030.01616.75
7.2.320.0120.00616.76
7.2.310.0090.00616.50
7.2.300.0090.00916.76
7.2.290.0130.00316.45
7.2.250.0100.01014.96
7.2.240.0140.00715.19
7.2.230.0100.00714.95
7.2.220.0070.01015.08
7.2.210.0060.01014.93
7.2.200.0000.01515.22
7.2.190.0090.00315.12
7.2.180.0060.00314.57
7.2.170.0030.01015.10
7.2.160.0060.00615.11
7.2.150.0040.01117.02
7.2.140.0070.00817.00
7.2.130.0060.00616.91
7.2.120.0030.00917.08
7.2.110.0100.00316.89
7.2.100.0110.00216.85
7.2.90.0020.01316.76
7.2.80.0110.00416.75
7.2.70.0050.01016.95
7.2.60.0060.00816.85
7.2.50.0110.00217.03
7.2.40.0030.00916.99
7.2.30.0090.00517.01
7.2.20.0060.00516.91
7.2.10.0030.01016.72
7.2.00.0030.01017.61
7.1.330.0090.00315.57
7.1.320.0030.00715.57
7.1.310.0060.00915.93
7.1.300.0070.00315.84
7.1.290.0070.00415.86
7.1.280.0030.00715.68
7.1.270.0060.00615.91
7.1.260.0100.00315.88
7.1.250.0020.01115.83
7.1.100.0070.00718.20
7.1.70.0920.00015.41
7.1.60.0100.01419.31
7.1.50.0150.00616.90
7.1.00.0000.07722.40
7.0.200.0040.00416.66
7.0.140.0030.07322.04
7.0.120.0000.06722.25
7.0.60.0130.08019.95
7.0.50.0070.08717.86
7.0.40.0130.06020.06
7.0.30.0200.06020.19
7.0.20.0270.07720.34
7.0.10.0230.04720.15
7.0.00.0100.07020.22
5.6.280.0070.07021.02
5.6.210.0100.07720.53
5.6.200.0000.04318.16
5.6.190.0130.08020.52
5.6.180.0300.07320.45
5.6.170.0330.07020.56
5.6.160.0030.05020.39
5.6.150.0070.08318.20
5.6.140.0170.07318.18
5.6.130.0100.06018.15
5.6.120.0070.08321.14
5.6.110.0030.08321.02
5.6.100.0030.05321.04
5.6.90.0130.08020.90
5.6.80.0130.06020.29
5.6.70.0170.09020.40
5.5.350.0330.06720.34
5.5.340.0030.05318.09
5.5.330.0070.05320.42
5.5.320.0130.04020.18
5.5.310.0200.05020.35
5.5.300.0100.07318.08
5.5.290.0100.05718.03
5.5.280.0070.08720.72
5.5.270.0100.08020.89
5.5.260.0000.04320.84
5.5.250.0100.08720.54
5.5.240.0030.08320.07
5.4.450.0330.07019.31
5.4.440.0230.04719.20
5.4.430.0170.06319.63
5.4.420.0330.03319.56
5.4.410.0230.07319.06
5.4.400.0430.05319.07
5.4.390.0270.05019.09
5.4.380.0270.06719.14
5.4.370.0300.05718.88
5.4.360.0200.07719.09
5.4.350.0300.07019.15
5.4.340.0230.07719.06
5.4.320.0230.05719.09
5.4.310.0200.05719.15
5.4.300.0270.07019.08
5.4.290.0370.03719.09
5.4.280.0270.07019.31
5.4.270.0270.07319.13
5.4.260.0530.01319.14
5.4.250.0230.04718.98
5.4.240.0170.07719.15
5.4.230.0270.06718.84
5.4.220.0200.04318.97
5.4.210.0300.06019.21
5.4.200.0170.05018.86
5.4.190.0300.06319.05
5.4.180.0230.04018.97
5.4.170.0200.05718.86
5.4.160.0200.04319.20
5.4.150.0230.07719.22
5.4.140.0230.07016.36
5.4.130.0200.06316.35
5.4.120.0170.05016.46
5.4.110.0270.06716.35
5.4.100.0200.05016.45
5.4.90.0270.04316.40
5.4.80.0230.05316.52
5.4.70.0170.04716.25
5.4.60.0300.05316.51
5.4.50.0130.04016.56
5.4.40.0270.07316.43
5.4.30.0230.04716.57
5.4.20.0230.05716.34
5.4.10.0330.05316.50
5.4.00.0300.06315.82
5.3.290.0300.07014.82
5.3.280.0200.03714.75
5.3.270.0230.07714.76
5.3.260.0270.06714.51
5.3.250.0300.05314.71
5.3.240.0170.05714.71
5.3.230.0370.05714.50
5.3.220.0230.05714.49
5.3.210.0200.06714.48
5.3.200.0200.04714.55
5.3.190.0270.06314.68
5.3.180.0230.04714.53
5.3.170.0230.06714.64
5.3.160.0170.05714.48
5.3.150.0230.07314.48
5.3.140.0300.06314.67
5.3.130.0200.05314.45
5.3.120.0300.04314.53
5.3.110.0200.07314.66
5.3.100.0170.04014.05
5.3.90.0270.06314.02
5.3.80.0230.05313.93
5.3.70.0270.06713.93
5.3.60.0270.07014.09
5.3.50.0270.06313.97
5.3.40.0300.03013.96
5.3.30.0300.05713.82
5.3.20.0230.04013.78
5.3.10.0230.03013.55
5.3.00.0200.07013.64
5.2.170.0170.06012.72
5.2.160.0200.02312.72
5.2.150.0270.03712.72
5.2.140.0170.06312.72
5.2.130.0170.02712.72
5.2.120.0200.03312.72
5.2.110.0200.05312.72
5.2.100.0230.04712.72
5.2.90.0200.04712.72
5.2.80.0100.06712.72
5.2.70.0230.05712.72
5.2.60.0270.04712.72
5.2.50.0200.05712.72
5.2.40.0200.05312.72
5.2.30.0170.05712.72
5.2.20.0230.05712.72
5.2.10.0200.05012.72
5.2.00.0130.03012.72
5.1.60.0170.02012.72
5.1.50.0130.02712.72
5.1.40.0100.02712.72
5.1.30.0200.05012.72
5.1.20.0100.03012.72
5.1.10.0130.02712.72
5.1.00.0230.04012.72
5.0.50.0070.04712.72
5.0.40.0170.03312.72
5.0.30.0070.06312.72
5.0.20.0070.03712.72
5.0.10.0070.04312.72
5.0.00.0100.04012.72
4.4.90.0100.03712.72
4.4.80.0130.03012.72
4.4.70.0070.02712.72
4.4.60.0130.03012.72
4.4.50.0130.03012.72
4.4.40.0070.02712.72
4.4.30.0100.03712.72
4.4.20.0100.02312.72
4.4.10.0030.02012.72
4.4.00.0070.05712.72
4.3.110.0130.02012.72
4.3.100.0130.03012.72
4.3.90.0100.02712.72
4.3.80.0070.04712.72
4.3.70.0070.03312.72
4.3.60.0070.01712.72
4.3.50.0130.01712.72
4.3.40.0100.02712.72
4.3.30.0070.01712.72
4.3.20.0070.02312.72
4.3.10.0030.01712.72
4.3.00.0000.02312.72

preferences:
44.51 ms | 401 KiB | 5 Q