Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $d = range(1, 20000);
- $t0 = microtime(true);
- $r = array_reduce(
- $d,
- function (&$carry, $item) {
- $carry []= $item;
- return $carry;
- },
- []
- );
- printf("%fms\n", (microtime(true) - $t0) * 1000);
Add Comment
Please, Sign In to add comment