3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime(date('Y-m-d', time())), new DateInterval('P1D'), new DateTime(date('Y-m-d', strtotime('+2 month', time()))) ); print_r(iteration_count($period));

preferences:
38.28 ms | 402 KiB | 5 Q