fork download
  1. <?php
  2.  
  3. $now = new DateTime();
  4.  
  5. $overtime=new DateTime();
  6. $overtime->add(DateInterval::createFromDateString('10 minutes'));
  7.  
  8. if ( $now >= $overtime ) { //if "overtime" has passed
  9.  
  10. echo 'run';
  11. //stuff happens with no regard for reality
  12. //driving me absolutely bonkers
  13.  
  14. }else{
  15. echo 'no run';
  16. }
  17.  
Success #stdin #stdout 0.01s 82624KB
stdin
Standard input is empty
stdout
no run