3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = strtotime('2014-06-23 09:58:19'); var_dump($data); $delta = time() - $data; $sessionTime = sprintf("%02d%s%02d%s%02d", floor($delta/3600), ':', ($delta/60)%60, ':', $delta%60); var_dump($sessionTime);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(1403510299) string(8) "01:02:08"