- var_dump: documentation ( source)
<?php
$now = new DateTimeImmutable;
$next = new DateTimeImmutable("last day of next week - 4 weekdays");
var_dump($now->format('d.m.Y'), $next->format('d.m.Y'), $next->diff($now)->format('%a'), $next->format('d.m.Y'));