3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('+7 days 23:59:59'); echo $date->format('r'); echo PHP_EOL; $date = new DateTime('midnight today'); echo $date->format('r');
Output for 5.2.0 - 7.3.0rc4
Wed, 19 Feb 2014 23:59:59 +0100 Wed, 12 Feb 2014 00:00:00 +0100
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/uVedI on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/uVedI on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/uVedI on line 3