3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // $selectedTime = "9:15:00"; // $datetime = DateTime::createFromFormat('g:i:s', $selectedTime); // $datetime->modify('+15 minutes'); // echo $datetime->format('H:i:s'); $time='05'; //, 8.3, 2.2. $x=explode('.',$time); $min=60*($x[1]/10); echo $x[0] .'hours and '.$min.'mins';
based on G12Bi
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.1
Notice: Undefined offset: 1 in /in/otCNv on line 11 05hours and 0mins
Output for hhvm-3.15.4
Notice: Undefined index: 1 in /in/otCNv on line 11 05hours and 0mins