3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month=12; $year=2014; $thisContract['startDate']='2014-12-31'; $thisDate = strtotime($month.'/1/'.$year. ' +1 month'); $hasntStarted = ($thisDate<=strtotime($thisContract['startDate'])); echo date('Y-m-d',$thisDate); if ($hasntStarted){ echo ("\nTRUE"); } else { echo ("\nFALSE"); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2015-01-01 FALSE