3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $first = new DateTime("2015/12/02 07:59:15"); $second = new DateTime(); var_dump($first > $second); $first = new DateTime("2017/12/02 07:59:15"); $second = new DateTime(); var_dump($first > $second);
based on eGmgm
Output for 5.3.20 - 7.2.6
bool(false) bool(true)