- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.6
Process exited with code 137.
<?php
class time
{
const second = 1000;
const minute = 60000;
const hour = 3600000;
const day = 86400000;
const week = 604800000;
const month = 18144000000;
static public function now()
{
return microtime(true);
}
static public function since ($time)
{
return microtime(true)-$time;
}
}
$start = time::now();
sleep(2 * time::second);
echo time::since($start);