<?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, call_user_func(function ($context·cfcd208495d565ef66e7dff9f98764da) { return function ($item) use ($context·cfcd208495d565ef66e7dff9f98764da) { extract($context·cfcd208495d565ef66e7dff9f98764da); return $item !== $ignore; }; }, get_defined_vars())); } echo (microtime(1) - $a) * 1000;
You have javascript disabled. You will not be able to edit any code.