3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["abc", "def", "ghi"]; $excludeKeyword_arr = ["ab", "de"]; foreach ($array as $index => $haystack) { foreach ($excludeKeyword_arr as $needle) { if (strpos($haystack, $needle) !== false) { unset($array[$index]); break; } } } var_export(array_values($array));

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.110.0030.00620.94
8.3.100.0100.00024.06
8.3.90.0090.00326.77
8.3.80.0040.00719.36
8.3.70.0120.00916.61
8.3.60.0070.00718.30
8.3.50.0120.00823.66
8.3.40.0070.00718.67
8.3.30.0070.00718.71
8.3.20.0040.00421.87
8.3.10.0060.00321.76
8.3.00.0080.00021.70
8.2.230.0050.00322.58
8.2.220.0130.00637.54
8.2.210.0030.00526.77
8.2.200.0090.00018.88
8.2.190.0120.00618.35
8.2.180.0120.00918.38
8.2.170.0070.01022.96
8.2.160.0070.00722.13
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.00322.31
8.2.100.0060.00617.68
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.48
8.2.60.0030.01017.80
8.2.50.0040.00418.07
8.2.40.0030.00618.35
8.2.30.0040.00418.18
8.2.20.0070.00018.13
8.2.10.0000.00719.23
8.2.00.0000.00719.38
8.1.290.0040.00430.84
8.1.280.0130.00325.92
8.1.270.0060.00321.95
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.01019.03
8.1.230.0080.00417.82
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0040.00418.78
8.1.150.0040.00418.89
8.1.140.0040.00420.65
8.1.130.0030.00320.34
8.1.120.0040.00417.37
8.1.110.0000.00717.35
8.1.100.0040.00417.50
8.1.90.0040.00417.47
8.1.80.0000.00817.47
8.1.70.0040.00417.51
8.1.60.0000.00817.56
8.1.50.0000.00817.44
8.1.40.0030.00617.48
8.1.30.0060.00317.63
8.1.20.0030.00517.51
8.1.10.0060.00317.48
8.1.00.0040.00417.40
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.44
8.0.270.0030.00318.07
8.0.260.0040.00420.08
8.0.250.0000.00617.04
8.0.240.0000.00716.86
8.0.230.0040.00416.85
8.0.220.0030.00316.94
8.0.210.0000.00716.94
8.0.200.0070.00016.85
8.0.190.0030.00516.87
8.0.180.0040.00416.82
8.0.170.0080.00516.80
8.0.160.0040.00416.80
8.0.150.0040.00416.93
8.0.140.0030.00716.91
8.0.130.0050.00013.39
8.0.120.0040.00416.91
8.0.110.0030.00316.94
8.0.100.0000.00816.85
8.0.90.0040.00416.87
8.0.80.0060.01316.96
8.0.70.0070.00016.96
8.0.60.0000.00717.01
8.0.50.0040.00416.77
8.0.30.0110.00717.21
8.0.20.0150.01116.71
8.0.10.0040.00416.90
8.0.00.0140.00316.74
7.4.330.0000.00516.85
7.4.320.0060.00016.57
7.4.300.0060.00016.50
7.4.290.0060.00316.61
7.4.280.0070.00016.62
7.4.270.0000.00716.62
7.4.260.0030.00313.27
7.4.250.0050.00316.47
7.4.240.0030.00316.62
7.4.230.0050.00216.47
7.4.220.0030.00316.57
7.4.210.0060.01316.64
7.4.200.0030.00416.39
7.4.140.0130.01017.86
7.4.130.0090.00916.47
7.4.120.0150.00316.34
7.4.110.0090.00916.48
7.4.100.0110.00616.45
7.4.90.0090.00916.54
7.4.80.0110.00719.39
7.4.70.0130.00316.55
7.4.60.0000.01716.38
7.4.50.0030.01316.48
7.4.40.0090.00616.37
7.4.20.0090.01316.38
7.4.10.0050.01716.54
7.4.00.0120.00916.50
7.3.330.0070.00016.31
7.3.320.0000.00613.02
7.3.310.0040.00416.13
7.3.300.0000.00716.26
7.3.290.0050.01216.33
7.3.280.0110.00416.21
7.3.260.0130.00416.58
7.3.240.0070.01016.31
7.3.230.0090.00916.31
7.3.210.0100.00716.34
7.3.200.0060.01016.43
7.3.190.0060.00916.29
7.3.180.0120.00516.52
7.3.170.0060.01016.48
7.3.160.0090.00616.32
7.3.140.0090.01116.25
7.3.130.0060.01416.56
7.3.120.0110.00816.44
7.3.110.0080.01416.34
7.3.100.0150.00616.34
7.3.90.0080.01316.37
7.3.80.0080.01216.50
7.3.70.0060.01616.21
7.3.60.0080.01416.45
7.3.50.0120.00916.38
7.3.40.0090.00716.30
7.3.30.0100.01016.39
7.3.20.0190.01416.39
7.3.10.0160.01316.36
7.3.00.0110.01216.36
7.2.330.0080.00916.42
7.2.320.0100.01016.41
7.2.310.0160.00016.73
7.2.300.0160.00316.34
7.2.290.0070.01316.68
7.2.270.0130.01016.70
7.2.260.0130.00816.49
7.2.250.0130.00816.45
7.2.240.0080.01416.65
7.2.230.0140.00816.43
7.2.220.0100.01016.38
7.2.210.0090.01116.64
7.2.200.0110.01216.50
7.2.190.0130.00916.47
7.2.180.0160.00816.60
7.2.170.0120.01216.42
7.2.160.0110.00916.59
7.2.150.0090.01416.54
7.2.140.0120.01116.59
7.2.130.0130.01016.43
7.2.120.0150.00816.59
7.2.110.0120.01216.63
7.2.100.0100.00716.70
7.2.90.0110.01016.50
7.2.80.0110.00916.57
7.2.70.0040.01216.50
7.2.60.0080.01416.51
7.2.50.0090.01416.63
7.2.40.0110.01016.55
7.2.30.0120.00816.68
7.2.20.0100.01116.57
7.2.10.0100.01116.50
7.2.00.0150.00816.55

preferences:
55.74 ms | 403 KiB | 5 Q