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('%s'));
Output for 5.6.30, hhvm-3.15.4 - 3.18.4, hhvm-3.19.2, hhvm-3.21.0 - 3.22.0, 7.0.0 - 7.3.0rc3
44
Output for hhvm-3.18.5, hhvm-3.20.2
43