3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=range(1,10000); function odd($elt) { return $elt & 1; } $start=microtime(true); for ($i=0;$i<100;$i++) { $b=array_filter($a, 'odd'); } echo "time = ", microtime(true) - $start, "\n";

preferences:
34.79 ms | 402 KiB | 5 Q