3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime('tommorow')); echo $dayAfterTomorrow->format('d m Y');
based on LifVr
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (tommorow) at position 0 (t): The timezone could not be found in the database in /in/i2UJm:2 Stack trace: #0 /in/i2UJm(2): DateTime->__construct('tommorow') #1 {main} thrown in /in/i2UJm 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 (tommorow) at position 0 (t): The timezone could not be found in the database' in /in/i2UJm:2 Stack trace: #0 /in/i2UJm(2): DateTime->__construct('tommorow') #1 {main} thrown in /in/i2UJm on line 2
Process exited with code 255.