3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
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.

preferences:
188.1 ms | 1395 KiB | 45 Q