3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.13
Parse error: syntax error, unexpected '}' in /in/rZWXi on line 7
Process exited with code 255.