3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime('first day of week 25');
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (first day of week 25) at position 13 (w): The timezone could not be found in the database in /in/hu0hu:3 Stack trace: #0 /in/hu0hu(3): DateTime->__construct('first day of we...') #1 {main} thrown in /in/hu0hu on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (first day of week 25) at position 13 (w): The timezone could not be found in the database' in /in/hu0hu:3 Stack trace: #0 /in/hu0hu(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 (first day of week 25) at position 13 (w): The timezone could not be found in the database' in /in/hu0hu:3 Stack trace: #0 /in/hu0hu(3): DateTime->__construct('first day of we...') #1 {main} thrown in /in/hu0hu on line 3
Process exited with code 255.