fork(1) download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $expira = new DateTime("2017-10-05 15:42:54");
  6. $today = new DateTime("today");
  7.  
  8. $interval = $expira->diff($today);
  9.  
  10. print_r($interval->format("%a days"));
Success #stdin #stdout 0.01s 83904KB
stdin
Standard input is empty
stdout
0 days