3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doNothing() {} $start = microtime(); for ($i=0;$i<1000;$i++) { doNothing(); } $end = microtime(); var_dump($start); $start = explode(' ', $start); $start = $start[0] + $start[1]; $end = explode(' ', $end); $end = $end[0] + $end[1]; echo $end . ' - ' . $start . ' = ' . ($end - $start);

preferences:
34.72 ms | 402 KiB | 5 Q