3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prazo = date('Y-m-d', strtotime(date('Y-m-d h:i').' - 30 days')); $criacao = date('2013-10-04'); print $prazo.' | '.$criacao; if ($prazo >= $criacao) { print "Prazo maior"; } else { print "Prazo menor"; }
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-09-04 | 2013-10-04Prazo menor
Output for 5.1.0 - 5.1.1
1970-01-01 | 2013-10-04Prazo menor
Output for 4.3.0 - 5.0.5
2013-11-03 | 2013-10-04Prazo maior