3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // set to UTC date_default_timezone_set('UTC'); $now = new DateTime(); $now->setTime(23, 59, 59); echo $now->format("Y-m-d H:i:s\n");
based on lOpl2
Output for 5.2.0 - 7.1.0
2014-10-05 23:59:59
Output for 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/MmltT on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/MmltT on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/MmltT on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/MmltT on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/MmltT on line 5