3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = new DateTime('second day of month', new DateTimeZone('Europe/Warsaw')); $clone = clone $today; $clone->modify('noon'); $currentGenerateDay = new DateTime('noon second day of month'); var_dump($clone == $currentGenerateDay);
based on mf65R
Output for 7.0.0 - 7.2.0
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/eQkLW:2 Stack trace: #0 /in/eQkLW(2): DateTime->__construct('second day of m...', Object(DateTimeZone)) #1 {main} thrown in /in/eQkLW 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/eQkLW:2 Stack trace: #0 /in/eQkLW(2): DateTime->__construct('second day of m...', Object(DateTimeZone)) #1 {main} thrown in /in/eQkLW on line 2
Process exited with code 255.