3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = date("Y-m-d", strtotime("2013-03-01")); $y = date("Y-m-d", strtotime("2013-02-01")); echo $x; echo $y; if ($x > $y) { echo "Sim"; } else { echo "Não"; }
Output for 4.3.0 - 7.1.0
2013-03-012013-02-01Sim