3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime('start of -1 month'));
based on XSRNV
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (start of -1 month) at position 0 (s): The timezone could not be found in the database in /in/IL7YN:3 Stack trace: #0 /in/IL7YN(3): DateTime->__construct('start of -1 mon...') #1 {main} thrown in /in/IL7YN on line 3
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (start of -1 month) at position 0 (s): The timezone could not be found in the database' in /in/IL7YN:3 Stack trace: #0 /in/IL7YN(3): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (start of -1 month) at position 0 (s): The timezone could not be found in the database' in /in/IL7YN:3 Stack trace: #0 /in/IL7YN(3): DateTime->__construct('start of -1 mon...') #1 {main} thrown in /in/IL7YN on line 3
Process exited with code 255.