3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = new DateTime('2015-09-07 07:05:00'); $d2 = new DateTime('2015-09-07 10:00:00'); $diff = $d1->diff($d2); $hours = $diff->h.$diff->i; echo $hours ;
based on d6n8F
Output for 5.3.19 - 7.2.0
255