3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new \DateTime())->format(\DateTime::ISO8601)); $dem = (new \DateTime('2017-03-06T12:10:00+0100')); $created = (new \DateTime('2017-03-06T12:05:00+0100')); //var_dump($dem->format('d.m.Y H:i:s')); //var_dump($created->format('d.m.Y H:i:s')); //var_dump($dem->getTimezone()); //var_dump($created->getTimezone()); var_dump($dem > $created);
based on IoDBh
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.1.1, 7.1.5 - 7.3.0beta1
string(24) "2017-03-06T13:56:11+0100" bool(true)
Output for 7.1.2
string(24) "2017-03-06T13:56:10+0100" bool(true)