3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $datetime1 = new DateTime('2009-10-11'); $datetime2 = new DateTime('2008-9-13'); $interval = $datetime2->diff($datetime1); echo $interval->format('%Y.%d');
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
01.28