- var_dump: documentation ( source)
- strtotime: documentation ( source)
<?php
$week = new DateTime("Y-m-d", strtotime("+1 week"));
$halfmonth = strtotime("+2 weeks");
var_dump($week < $halfmonth);
var_dump($halfmonth);
var_dump($week);
var_dump($week < $halfmonth);