3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime("what the fuck?"); var_dump($dt); var_dump($dt->getLastErrors());
based on OvFEb
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (what the fuck?) at position 0 (w): The timezone could not be found in the database in /in/YmFMX:3 Stack trace: #0 /in/YmFMX(3): DateTime->__construct('what the fuck?') #1 {main} thrown in /in/YmFMX on line 3
Process exited with code 255.
Output for 5.3.17 - 5.6.21
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (what the fuck?) at position 0 (w): The timezone could not be found in the database' in /in/YmFMX:3 Stack trace: #0 /in/YmFMX(3): DateTime->__construct('what the fuck?') #1 {main} thrown in /in/YmFMX on line 3
Process exited with code 255.