3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $interval = (new DateTime('2017-07-02 00:00:00'))->getTimestamp() - (new DateTime('2017-07-03 00:00:00'))->getTimestamp(); echo round( $interval / (60 * 60) );
Output for 7.0.20
-24