<?php $start = new DateTimeImmutable('2016-04-20 00:37:15'); $end = $start->modify('+7 days'); $diff = $end->diff($start); echo $diff->format('%d days') . PHP_EOL; var_dump($start, $end, $diff);
You have javascript disabled. You will not be able to edit any code.