3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = new DateTime('secound noon first day of this month'); $clone = clone $today; $clone->modify('+1 day'); $currentGenerateDay = (new DateTime('noon first day of this month'))->modify('+1 day'); echo $clone->format('Y-m-d H:i:s').' '.$currentGenerateDay->format('Y-m-d H:i:s'); var_dump($clone == $currentGenerateDay);
based on bT47d
Output for 7.0.0 - 7.2.8
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (secound noon first day of this month) at position 0 (s): The timezone could not be found in the database in /in/qTBT2:2 Stack trace: #0 /in/qTBT2(2): DateTime->__construct('secound noon fi...') #1 {main} thrown in /in/qTBT2 on line 2
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (secound noon first day of this month) at position 0 (s): The timezone could not be found in the database' in /in/qTBT2:2 Stack trace: #0 /in/qTBT2(2): DateTime->__construct('secound noon fi...') #1 {main} thrown in /in/qTBT2 on line 2
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/qTBT2 on line 7
Process exited with code 255.