3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [[0, 3, 10, 5, 6, 9, 2, 7, 1, 4, 8, 11], [0, 1, 2, 3], [0, 5, 2, 4, 3, 1], [0, 1, 3, 2]]; $deletes = [3, 5]; var_export( array_map( function($array) use ($deletes) { $result = []; foreach (array_diff($array, $deletes) as $value) { $result[] = array_reduce( $deletes, function ($carry, $item) use ($value) { return $carry - ($value > $item); }, $value ); } return $result; }, $arrays ) );

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.20.0030.00619.04
8.4.10.0090.00022.38
8.3.150.0160.00416.54
8.3.140.0040.00416.69
8.3.130.0060.00318.45
8.3.120.0040.00418.92
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0000.00826.77
8.3.80.0090.00018.43
8.3.70.0130.00716.58
8.3.60.0150.00018.35
8.3.50.0110.00523.63
8.3.40.0100.01018.79
8.3.30.0090.00618.71
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.270.0120.00616.40
8.2.260.0110.00717.29
8.2.250.0080.00016.81
8.2.240.0030.00719.09
8.2.230.0090.00922.58
8.2.220.0060.00337.54
8.2.210.0110.00326.77
8.2.200.0030.00716.63
8.2.190.0090.00916.58
8.2.180.0110.00725.92
8.2.170.0140.00418.88
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.35
8.2.110.0060.00319.14
8.2.100.0040.00817.84
8.2.90.0000.00817.96
8.2.80.0040.00417.97
8.2.70.0050.00318.04
8.2.60.0000.00818.16
8.2.50.0040.00417.63
8.2.40.0080.00017.62
8.2.30.0040.00418.14
8.2.20.0070.00018.12
8.2.10.0000.00719.23
8.2.00.0000.00719.31
8.1.310.0170.00018.30
8.1.300.0070.00317.70
8.1.290.0090.00030.84
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00228.09
8.1.250.0050.00228.09
8.1.240.0060.00323.90
8.1.230.0110.00022.68
8.1.220.0050.00317.78
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00418.84
8.1.150.0040.00718.82
8.1.140.0070.00018.78
8.1.130.0030.00320.24
8.1.120.0040.00417.52
8.1.110.0050.00317.46
8.1.100.0040.00417.46
8.1.90.0040.00417.47
8.1.80.0020.00817.47
8.1.70.0070.00017.29
8.1.60.0030.00617.48
8.1.50.0040.00417.50
8.1.40.0000.00817.50
8.1.30.0060.00317.50
8.1.20.0030.00717.55
8.1.10.0050.00317.50
8.1.00.0050.00317.39
8.0.300.0040.00420.00
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0000.00718.08
8.0.260.0060.00018.57
8.0.250.0030.00316.90
8.0.240.0040.00417.04
8.0.230.0070.00017.03
8.0.220.0000.00716.95
8.0.210.0070.00016.95
8.0.200.0030.00517.04
8.0.190.0040.00416.93
8.0.180.0000.00716.98
8.0.170.0000.00816.90
8.0.160.0070.00016.94
8.0.150.0070.00016.91
8.0.140.0070.00016.85
8.0.130.0030.00313.35
8.0.120.0080.00016.92
8.0.110.0050.00316.83
8.0.100.0000.00716.97
8.0.90.0030.00316.84
8.0.80.0090.00716.88
8.0.70.0040.00416.88
8.0.60.0070.00016.93
8.0.50.0040.00416.85
8.0.30.0090.01317.04
8.0.20.0140.00716.96
8.0.10.0000.00817.12
8.0.00.0090.01516.98
7.4.330.0040.00015.55
7.4.320.0060.00016.62
7.4.300.0000.00816.51
7.4.290.0040.00416.56
7.4.280.0040.00416.45
7.4.270.0030.00316.51
7.4.260.0050.00013.30
7.4.250.0000.00716.54
7.4.240.0000.00716.56
7.4.230.0070.00016.51
7.4.220.0020.00516.50
7.4.210.0070.00816.55
7.4.200.0000.00716.60
7.4.130.0140.00816.58
7.4.120.0140.00616.57
7.4.110.0160.00316.73
7.4.100.0070.01016.59
7.4.90.0030.01416.54
7.4.80.0060.01216.38
7.4.70.0130.01016.08
7.4.60.0120.01016.38
7.4.50.0060.01416.40
7.4.40.0120.00816.56
7.4.30.0140.00816.54
7.4.20.0120.01216.31
7.4.10.0150.01216.47
7.4.00.0150.00716.55
7.3.330.0070.00016.11
7.3.320.0000.00513.24
7.3.310.0020.00516.34
7.3.300.0000.00716.25
7.3.290.0080.00916.27
7.3.260.0130.01016.60
7.3.240.0100.00816.52
7.3.230.0070.01116.47
7.3.210.0030.01316.36
7.3.200.0050.01616.32
7.3.190.0140.00716.03
7.3.180.0110.01116.39
7.3.170.0090.01116.27
7.3.160.0080.01016.44
7.3.150.0110.00916.31
7.3.140.0070.01416.43
7.3.130.0110.00816.56
7.3.120.0110.00916.48
7.3.110.0110.01216.48
7.3.100.0110.01016.53
7.3.90.0100.01316.37
7.3.80.0090.01216.45
7.3.70.0130.00516.42
7.3.60.0100.00916.26
7.3.50.0120.00916.38
7.3.40.0130.01116.38
7.3.30.0060.01616.32
7.3.20.0100.01117.24
7.3.10.0170.00517.22
7.3.00.0150.00917.18
7.2.330.0130.00916.76
7.2.320.0150.00616.44
7.2.310.0100.01016.74
7.2.300.0100.01016.68
7.2.290.0160.00716.69
7.2.280.0100.01116.61
7.2.270.0160.00916.43
7.2.260.0050.01616.85
7.2.250.0110.01116.50
7.2.240.0060.01416.50
7.2.230.0070.01316.72
7.2.220.0100.01216.72
7.2.210.0110.00916.66
7.2.200.0130.00716.57
7.2.190.0060.01716.60
7.2.180.0070.01416.70
7.2.170.0140.00916.66
7.2.160.0130.00716.52
7.2.150.0110.01217.52
7.2.140.1060.00817.46
7.2.130.0090.01317.38
7.2.120.0120.00917.28
7.2.110.0090.01717.56
7.2.100.0110.01317.38
7.2.90.0050.02017.36
7.2.80.0120.01117.49
7.2.70.0150.00917.48
7.2.60.0110.01117.35
7.2.50.0160.00717.45
7.2.40.0160.00817.49
7.2.30.0160.00917.45
7.2.20.0100.01017.46
7.2.10.0150.00517.37
7.2.00.0110.00817.50

preferences:
27.09 ms | 403 KiB | 5 Q