3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateStart = new DateTime('2017-07-11 00:00:00'); $now = new DateTime('now', $dateStart->getTimezone()); $interval = $dateStart->diff($now); print_r($interval->format('%i'));
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0rc3
43