<?php $items = ["one", "two", "three", "one", "two", "three", "one", "two", "three", "one", "two", "three", "one", "two", "three"]; $ignore = "two"; $a = microtime(1); for ($i = 0; $i < 10000; $i++) { array_filter($items, function ($item) use ($ignore) { return $item !== $ignore; }); } echo (microtime(1) - $a) * 1000;
You have javascript disabled. You will not be able to edit any code.