3v4l.org

run code in 300+ PHP versions simultaneously
<?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); echo $hasntStarted
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/QFTMh on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/QFTMh on line 11
Process exited with code 255.

preferences:
175.32 ms | 1399 KiB | 67 Q