<?php $time1 = new DateTime('20150501'); $time2 = new DateTime(); //data atual$interval = $time2->diff($time1);echo $interval->days;
Standard input is empty
33
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!