- Output for 5.3.0 - 5.3.23, 5.4.0 - 5.4.13
- Parse error: syntax error, unexpected '}' in /in/rZWXi on line 7
Process exited with code 255.
<?php
$a = range(0, 1000);
$time = microtime(true);
array_map(function($el) { return $el * $el }, $a);
var_dump(microtime(true) - $time);
$time = microtime(true);
foreach ($a as &$el) {
$el = $el * $el;
}
var_dump(microtime(true) - $time);