3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('Europe/Brussels'); $date1 = new DateTime('2014-10-26T03:00:00', $tz); $date2 = new DateTime('2014-10-26T00:00:00', $tz); var_dump($date2->diff($date1));

preferences:
31.12 ms | 402 KiB | 5 Q