3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = (new DateTime())->format('Y-m-d H:i:s'); $expires = (new DateTime('+10 minutes'))->format('Y-m-d H:i:s'); echo $now . "\n"; echo $expires . "\n"; var_dump($now >= $expires); var_dump($now <= $expires);
based on pCX2C
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
2017-07-05 16:02:54 2017-07-05 16:12:54 bool(false) bool(true)
Output for hhvm-3.15.4
2017-07-05 16:02:55 2017-07-05 16:12:55 bool(false) bool(true)