3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($v) { return $v + 1; } $foo = function ($v) { return $v + 1; }; $a = range(0,100000); $t = microtime(1); array_map('foo', $a); $t = microtime(1) - $t; var_dump($t); $a = range(0,100000); $t = microtime(1); array_map($foo, $a); $t = microtime(1) - $t; var_dump($t);
based on pS1AR