3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $datetime1 = new DateTime('2014-06-21 08:00:41'); $datetime2 = new DateTime('2014-06-19 13:40:46'); $interval = $datetime1->diff($datetime2); echo $interval->format('%R%a hours'); ?>
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '<' in /in/uDVCR on line 4
Process exited with code 255.