3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = date('d/m/Y', strtotime("+1 day", strtotime(date('d/m/Y', strtotime('01-02-2017'))))); $b = date('d/m/Y', strtotime("+1 day", strtotime(date('d/m/Y', strtotime('02-02-2017'))))); var_dump($a,$b); if($a < $b){ echo "maior"; }else{ echo "else"; }
based on 0FKYM
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
string(10) "03/01/2017" string(10) "03/02/2017" maior