3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $thisContract['startDate']='2015-01-01'; $thisDate = strtotime($month.'/1/'.$year. ' +1 month'); $hasntStarted = ($thisDate<strtotime($thisContract['startDate'])); echo date('Y-m-d',$thisDate); if ($hasntStarted){ echo ("\nNot Started"); } else { echo ("\nSTARTED"); }

preferences:
39.6 ms | 402 KiB | 5 Q