fork download
  1. <?php
  2. $start = new DateTime("2013/05/08 12:30:30");
  3. $end = new DateTime("2013/05/04 12:30:30");
  4. if( $start > $end )
  5. {
  6. echo "true";
  7. }
  8. else
  9. {
  10. echo "false";
  11. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
true