3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $interval = (new \DateTime('yesterday'))->diff(new \DateTime('now')); echo $interval->format('%h');
Output for 7.0.20
12