3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $interval = (new \DateTime('2017-07-01 00:00:00'))->diff(new \DateTime('2017-07-03 01:00:00')); echo $interval->format('%h');
Output for 7.0.19
1