3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['keepThis', 'remove', false, 'keep', 'save', 'delete']; $array2 = ['hangOnto', 'remove', null, 'retain', 'keep', 'delete']; var_export([ array_filter( $array1, fn($value, $index) => $array2[$index] !== $value, ARRAY_FILTER_USE_BOTH ), array_filter( $array2, fn($value, $index) => $array1[$index] !== $value, ARRAY_FILTER_USE_BOTH ) ]);

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.140.0140.00817.88
8.4.130.0120.00818.85
8.4.120.0150.00623.93
8.4.110.0110.00820.29
8.4.100.0090.01218.95
8.4.90.0090.00718.86
8.4.80.0050.00418.85
8.4.70.0050.00318.24
8.4.60.0100.00619.13
8.4.50.0090.00918.70
8.4.40.0100.01019.43
8.4.30.0130.00320.64
8.4.20.0070.01319.78
8.4.10.0130.00625.89
8.3.270.0120.01116.75
8.3.260.0090.00816.69
8.3.250.0110.00818.68
8.3.240.0120.00817.16
8.3.230.0120.00616.60
8.3.220.0100.00618.95
8.3.210.0030.00416.55
8.3.200.0110.00816.36
8.3.190.0140.00617.15
8.3.180.0010.00717.03
8.3.170.0090.00919.12
8.3.160.0110.00717.05
8.3.150.0100.01018.81
8.3.140.0050.00318.94
8.3.130.0060.00316.48
8.3.120.0080.00020.70
8.3.110.0040.00820.94
8.3.100.0040.00418.58
8.3.90.0050.00326.77
8.3.80.0000.00916.63
8.3.70.0120.00916.58
8.3.60.0140.00418.31
8.3.50.0140.00718.01
8.3.40.0070.00718.84
8.3.30.0120.00319.08
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.290.0090.00220.49
8.2.280.0070.00918.50
8.2.270.0040.01517.29
8.2.260.0050.00316.80
8.2.250.0050.00318.41
8.2.240.0070.01119.14
8.2.230.0090.00622.58
8.2.220.0060.00324.06
8.2.210.0160.00326.77
8.2.200.0060.00318.29
8.2.190.0090.01216.63
8.2.180.0130.00625.92
8.2.170.0110.00418.89
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00719.88
8.2.110.0060.00322.14
8.2.100.0090.00317.72
8.2.90.0050.00317.88
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0060.00318.85
8.2.30.0070.00417.84
8.2.20.0060.00219.00
8.2.10.0080.00317.81
8.2.00.0090.00318.49
8.1.330.0120.00722.10
8.1.320.0100.00916.04
8.1.310.0000.00816.70
8.1.300.0040.00816.81
8.1.290.0100.00330.84
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00320.97
8.1.230.0040.00820.79
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0080.00418.23
8.1.160.0060.00618.21
8.1.150.0090.00418.13
8.1.140.0090.00317.54
8.1.130.0000.01117.54
8.1.120.0050.00717.56
8.1.110.0050.00717.54
8.1.100.0070.00717.47
8.1.90.0070.00417.56
8.1.80.0090.00517.54
8.1.70.0080.00417.53
8.1.60.0120.00117.54
8.1.50.0080.00617.57
8.1.40.0170.00317.55
8.1.30.0190.00417.62
8.1.20.0160.00217.60
8.1.10.0130.00417.58
8.1.00.0150.00617.56
8.0.300.0070.00019.99
8.0.290.0080.00316.63
8.0.280.0060.00518.02
8.0.270.0060.00517.24
8.0.260.0050.00517.22
8.0.250.0080.00317.26
8.0.240.0060.00617.23
8.0.230.0080.00517.21
8.0.220.0080.00417.28
8.0.210.0060.00717.23
8.0.200.0070.00417.21
8.0.190.0080.00417.28
8.0.180.0080.00417.27
8.0.170.0130.00717.23
8.0.160.0170.00317.28
8.0.150.0150.00617.22
8.0.140.0120.00617.23
8.0.130.0100.00517.14
8.0.120.0080.00717.23
8.0.110.0100.00517.25
8.0.100.0050.01117.24
8.0.90.0120.00317.22
8.0.80.0130.00417.21
8.0.70.0140.00317.13
8.0.60.0110.00317.20
8.0.50.0060.00817.16
8.0.30.0120.00617.21
8.0.20.0130.00417.31
8.0.10.0120.00617.28
7.4.330.0060.00316.58
7.4.320.0040.00817.11
7.4.300.0030.00717.05
7.4.290.0080.00317.11
7.4.280.0150.00517.10
7.4.270.0150.00617.12
7.4.260.0130.00817.04
7.4.250.0200.00217.05
7.4.240.0170.00217.05
7.4.230.0140.00917.08
7.4.220.0080.00617.03
7.4.210.0080.00617.02
7.4.200.0090.00517.06
7.4.190.0120.00517.05
7.4.180.0120.00417.04
7.4.160.0140.00517.13
7.4.150.0150.00417.08
7.4.140.0150.00217.02
7.4.130.0150.00317.02
7.4.120.0120.00617.06
7.4.110.0130.00317.05
7.4.100.0120.00717.03
7.4.90.0090.00917.01
7.4.80.0140.00016.98
7.4.70.0150.00216.97
7.4.60.0150.00417.04
7.4.50.0160.00216.98
7.4.40.0180.00217.03
7.4.30.0150.00317.06
7.4.20.0150.00216.97
7.4.10.0110.00617.07
7.4.00.0140.00317.08

preferences:
32.82 ms | 403 KiB | 5 Q