3v4l.org

run code in 200+ 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 - 7.2.0
int(1403510299) string(8) "01:02:08"