3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d2=1245; $mod2 = fmod($d2,60); $hrs2= intval($d2/60); $jd2=intval($hrs2/24); $Hour2=$hrs2%24; // 24-hour time to 12-hour time $boardtime=DATE("g:i a", STRTOTIME($Hour2.":".$mod2));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0