fork(146) download
  1. <?php
  2.  
  3. $today = new DateTime();
  4. $date = new DateTime('2013-03-10');
  5.  
  6. $interval = $today->diff($date);
  7. echo $interval->format("%r%a");
  8.  
Success #stdin #stdout 0.02s 20520KB
stdin
Standard input is empty
stdout
-401