- var_dump: documentation ( source)
<?php
$d = new \DateTime('previous month');
$from = clone $d;
$to = clone $d;
$from->modify('first day of this month midnight');
$to->modify('last day of this month 23:59:59.999999');
var_dump($from);
var_dump($to);