fork(7) download
  1. <?php
  2.  
  3. $time1 = new DateTime('20150501');
  4. $time2 = new DateTime(); //data atual
  5. $interval = $time2->diff($time1);
  6. echo $interval->days;
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
33