3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aa = array("1 2 3 4 5", "6 7 8 9 10", "11 12 13 14 15", "16 17 18 19 20", "21 22 23 24 25"); $bb = array("1 2", "6 7 8", "11 12 13 14", "16 17 18 19 20"); $exclude = []; foreach($bb as $b){ $exclude = array_merge($exclude, preg_grep("/^". preg_quote($b) . "/", $aa)); } $final = array_diff($aa, $exclude); print_r($final);

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.130.0060.00318.40
8.3.120.0040.00420.84
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0070.00718.55
8.3.80.0030.00618.43
8.3.70.0120.00316.88
8.3.60.0110.00418.45
8.3.50.0120.00718.38
8.3.40.0040.01119.01
8.3.30.0090.00918.84
8.3.20.0020.00520.82
8.3.10.0000.00719.14
8.3.00.0000.00721.90
8.2.250.0030.00518.60
8.2.240.0060.00317.29
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0070.00726.77
8.2.200.0080.00316.88
8.2.190.0150.00616.75
8.2.180.0110.00425.92
8.2.170.0070.00718.79
8.2.160.0110.00420.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0030.00621.10
8.2.100.0080.00417.97
8.2.90.0030.00618.22
8.2.80.0040.00419.21
8.2.70.0070.00418.03
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0070.00019.30
8.2.30.0040.00419.27
8.2.20.0040.00417.99
8.2.10.0040.00419.11
8.2.00.0000.00719.52
8.1.300.0080.00018.10
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0000.00922.21
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00522.18
8.1.230.0100.00320.84
8.1.220.0040.00417.78
8.1.210.0040.00420.11
8.1.200.0000.01117.48
8.1.190.0080.00017.23
8.1.180.0060.00518.10
8.1.170.0080.00018.78
8.1.160.0000.00818.90
8.1.150.0020.00518.90
8.1.140.0020.00518.90
8.1.130.0000.00820.10
8.1.120.0000.00717.49
8.1.110.0040.00417.48
8.1.100.0000.00817.63
8.1.90.0040.00417.50
8.1.80.0000.00717.54
8.1.70.0000.00717.61
8.1.60.0080.00017.75
8.1.50.0040.00417.67
8.1.40.0000.00917.57
8.1.30.0040.00417.83
8.1.20.0090.00017.77
8.1.10.0070.00317.64
8.1.00.0040.00417.57
8.0.300.0040.00419.97
8.0.290.0050.00316.75
8.0.280.0030.00318.37
8.0.270.0000.00717.29
8.0.260.0000.00618.50
8.0.250.0030.00317.07
8.0.240.0000.00817.12
8.0.230.0050.00217.13
8.0.220.0050.00317.03
8.0.210.0030.00317.07
8.0.200.0070.00017.11
8.0.190.0080.00017.08
8.0.180.0030.00317.12
8.0.170.0110.00017.02
8.0.160.0000.00716.95
8.0.150.0090.00016.95
8.0.140.0000.00716.96
8.0.130.0060.00013.50
8.0.120.0040.00417.00
8.0.110.0040.00417.05
8.0.100.0000.00716.98
8.0.90.0040.00417.02
8.0.80.0030.01317.06
8.0.70.0030.00516.90
8.0.60.0080.00017.05
8.0.50.0040.00416.99
8.0.30.0090.01017.21
8.0.20.0160.00417.04
8.0.10.0030.00517.19
8.0.00.0110.00616.92
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0060.00016.72
7.4.290.0050.00316.68
7.4.280.0030.00516.84
7.4.270.0040.00416.73
7.4.260.0030.00316.78
7.4.250.0030.00316.73
7.4.240.0030.00316.79
7.4.230.0040.00416.91
7.4.220.0040.00416.91
7.4.210.0110.00816.81
7.4.200.0000.00716.62
7.4.160.0100.00616.59
7.4.140.0060.01217.86
7.4.130.0170.00016.66
7.4.120.0070.01016.64
7.4.110.0070.01016.74
7.4.100.0110.00616.52
7.4.90.0070.01016.68
7.4.80.0070.01019.39
7.4.70.0100.00716.64
7.4.60.0100.01316.46
7.4.50.0030.01316.71
7.4.40.0080.00916.78
7.4.00.0060.00315.32
7.3.330.0050.00013.16
7.3.320.0060.00013.25
7.3.310.0030.00316.40
7.3.300.0070.00016.44
7.3.290.0090.00916.39
7.3.280.0060.01016.38
7.3.260.0110.00716.57
7.3.240.0100.01016.46
7.3.230.0100.00716.42
7.3.210.0110.00616.85
7.3.200.0040.01216.50
7.3.190.0060.00916.68
7.3.180.0060.00916.52
7.3.170.0070.01016.49
7.3.160.0060.01216.42
7.3.50.0130.00014.73
7.3.40.0090.00514.70
7.3.30.0090.00414.86
7.3.20.0090.00716.79
7.3.10.0120.00816.82
7.3.00.0110.00017.02
7.2.330.0030.01416.75
7.2.320.0140.01116.93
7.2.310.0150.00416.91
7.2.300.0070.01116.86
7.2.290.0080.00816.92
7.2.180.0070.00415.23
7.2.170.0040.00815.29
7.2.160.0070.00715.34
7.2.150.0120.00017.11
7.2.140.0070.00717.09
7.2.130.0040.00717.17
7.2.120.0110.00817.17
7.2.110.0040.01116.99
7.2.100.0110.00317.05
7.2.90.0040.01117.14
7.2.80.0110.00317.01
7.2.70.0070.00717.35
7.2.60.0100.00317.08
7.2.50.0130.01017.14
7.2.40.0100.00317.03
7.2.30.0070.00417.12
7.2.20.0000.01317.07
7.2.10.0030.00917.18
7.2.00.0100.00217.11
7.1.280.0040.00815.95
7.1.270.0030.01015.84
7.1.260.0090.00316.15
7.1.250.0090.00916.11

preferences:
62.61 ms | 403 KiB | 5 Q