- var_dump: documentation ( source)
- microtime: documentation ( source)
- explode: documentation ( source)
<?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);