3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new \DateTime(); $bar1 = '2018-01-27'; $bar2 = '2018-01-24'; var_dump($foo > $bar1); // false var_dump($foo > $bar2); // true
based on 1mZ82
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
bool(true) bool(true)