3v4l.org

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