3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function Date2Number($date) { list($hours, $minutes, $seconds) = explode(":", $date); $minutes = $minutes / 60; return $hours.":".$minutes.":".$seconds; } echo Date2Number("48:30:00"); ?>
based on 5Ch5r
Output for 4.3.0 - 7.2.0
48:0.5:00