3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = new DateTime('second day of month'); $clone = clone $today; $clone->modify('noon'); $currentGenerateDay = new DateTime('second day of month noon'); var_dump($clone == $currentGenerateDay);
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (second day of month) at position 11 (o): The timezone could not be found in the database in /in/E2vND:2 Stack trace: #0 /in/E2vND(2): DateTime->__construct('second day of m...') #1 {main} thrown in /in/E2vND on line 2
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (second day of month) at position 11 (o): The timezone could not be found in the database' in /in/E2vND:2 Stack trace: #0 /in/E2vND(2): DateTime->__construct('second day of m...') #1 {main} thrown in /in/E2vND on line 2
Process exited with code 255.