<?php $today = new DateTime();$date = new DateTime('2014-05-10'); $interval = $today->diff($date);echo (int)$today->diff($date)->format("%r%a");
Standard input is empty
-3645
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!