3v4l.org

run code in 200+ php & hhvm versions
<?php $now = new DateTime('now'); $yesterday = new DateTime('yesterday'); $interval = $now->diff($yesterday, true); var_dump(abs($interval->d));
Output for 7.1.25 - 7.3.6
int(1)