- print_r: documentation ( source)
<?php
$start = new DateTime('2014-01-07', new DateTimeZone('UTC'));
$end = clone $start;
$start->sub(new DateInterval('P1M')); // substract one month
echo $start->format('r').' - '.$end->format('r');
print_r($end->diff($start));
print_r($start->diff($end));