3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump($d->format('Y-m-d H:i:s'));
based on krYZe
Output for 5.6.28, 7.0.20 - 7.2.0
string(19) "2015-10-30 14:54:45"
Output for 7.0.6
string(19) "2016-05-03 18:03:06"
Output for 7.0.5
string(19) "2016-04-03 06:29:52"
Output for 7.0.4
string(19) "2016-03-10 18:15:07"
Output for 7.0.3
string(19) "2016-03-18 19:18:18"
Output for 7.0.2
string(19) "2016-03-23 01:27:56"
Output for 7.0.1
string(19) "2016-03-24 05:11:05"
Output for 7.0.0
string(19) "2016-03-27 07:07:45"
Output for 5.6.21
string(19) "2016-05-02 13:13:06"
Output for 5.6.20
string(19) "2016-04-10 05:29:04"
Output for 5.6.19
string(19) "2016-03-08 02:25:31"
Output for 5.6.18
string(19) "2016-03-15 11:07:50"
Output for 5.6.17
string(19) "2016-03-19 22:48:09"
Output for 5.6.16
string(19) "2016-03-28 07:54:49"
Output for 5.6.15
string(19) "2016-03-29 08:45:38"
Output for 5.6.14
string(19) "2016-04-02 10:38:25"
Output for 5.6.13
string(19) "2016-04-15 14:59:36"
Output for 5.6.12
string(19) "2016-04-20 05:28:28"
Output for 5.6.11
string(19) "2016-04-24 11:44:30"
Output for 5.6.10
string(19) "2016-04-25 13:53:49"
Output for 5.6.9
string(19) "2016-04-27 19:03:37"
Output for 5.6.8
string(19) "2016-04-30 03:56:46"
Output for 5.5.35
string(19) "2016-05-22 19:39:08"
Output for 5.5.34
string(19) "2016-04-11 07:41:07"
Output for 5.5.33
string(19) "2016-03-09 05:03:47"
Output for 5.5.32
string(19) "2016-03-17 14:45:35"
Output for 5.5.31
string(19) "2016-03-21 01:47:24"
Output for 5.5.30
string(19) "2016-04-01 10:39:07"
Output for 5.5.29
string(19) "2016-04-17 05:23:49"
Output for 5.5.28
string(19) "2016-04-21 08:41:46"
Output for 5.5.27
string(19) "2016-04-22 10:30:14"
Output for 5.5.26
string(19) "2016-04-26 16:36:54"
Output for 5.5.25
string(19) "2016-04-28 23:27:57"
Output for 5.5.24
string(19) "2016-05-24 06:02:34"
Output for 5.4.45
string(19) "2015-10-30 14:54:55"
Output for 5.4.38 - 5.4.44
string(19) "2015-10-30 14:54:56"
Output for 5.4.28 - 5.4.37
string(19) "2015-10-30 14:54:57"
Output for 5.4.21 - 5.4.27
string(19) "2015-10-30 14:54:58"
Output for 5.4.13 - 5.4.20
string(19) "2015-10-30 14:54:59"
Output for 5.4.6 - 5.4.12
string(19) "2015-10-30 14:55:00"
Output for 5.4.0 - 5.4.5
string(19) "2015-10-30 14:55:01"
Output for 5.3.25 - 5.3.29
string(19) "2015-10-30 14:55:02"
Output for 5.3.19 - 5.3.24
string(19) "2015-10-30 14:55:03"