3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo new DateTime('last monday of month');
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (last monday of month) at position 15 (m): The timezone could not be found in the database in /in/0qTrE:4 Stack trace: #0 /in/0qTrE(4): DateTime->__construct('last monday of ...') #1 {main} thrown in /in/0qTrE on line 4
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (last monday of month) at position 15 (m): The timezone could not be found in the database' in /in/0qTrE:4 Stack trace: #0 /in/0qTrE(4): DateTime->__construct('last monday of ...') #1 {main} thrown in /in/0qTrE on line 4
Process exited with code 255.