3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(~0); $timestamp_initial = strtotime('2013-12-17 10:08:00'); $timestamp_final = strtotime('2013-12-17 15:02:00'); $horas_transcurridas = date('H:i:s', $timestamp_final - $timestamp_initial); echo $horas_transcurridas;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
05:54:00