3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo ($date->format('Y-m-d H:i:s'));
based on kl5t8
Output for 5.6.28, 7.0.20 - 7.2.0
2016-01-03 19:07:37
Output for 7.0.6
2016-05-21 13:16:38
Output for 7.0.5
2016-04-03 09:19:21
Output for 7.0.4
2016-03-10 21:25:41
Output for 7.0.3
2016-03-18 22:48:52
Output for 7.0.2
2016-03-23 05:01:56
Output for 7.0.1
2016-03-24 08:10:01
Output for 7.0.0
2016-03-27 10:03:21
Output for 5.6.21
2016-05-02 16:12:06
Output for 5.6.20
2016-04-10 08:21:08
Output for 5.6.19
2016-03-08 05:33:37
Output for 5.6.18
2016-03-15 14:30:26
Output for 5.6.17
2016-03-20 02:02:16
Output for 5.6.16
2016-03-28 10:52:38
Output for 5.6.15
2016-03-29 11:41:48
Output for 5.6.14
2016-04-14 17:24:19
Output for 5.6.13
2016-04-15 18:03:14
Output for 5.6.12
2016-04-20 08:32:20
Output for 5.6.11
2016-04-24 14:58:07
Output for 5.6.10
2016-04-25 17:04:08
Output for 5.6.9
2016-04-27 22:30:04
Output for 5.6.8
2016-04-30 07:00:28
Output for 5.5.35
2016-05-23 01:56:10
Output for 5.5.34
2016-04-11 10:34:57
Output for 5.5.33
2016-03-09 08:32:28
Output for 5.5.32
2016-03-17 18:26:26
Output for 5.5.31
2016-03-21 05:11:06
Output for 5.5.30
2016-04-01 13:34:01
Output for 5.5.29
2016-04-17 08:20:59
Output for 5.5.28
2016-04-21 11:50:45
Output for 5.5.27
2016-04-22 13:29:45
Output for 5.5.26
2016-04-26 19:44:28
Output for 5.5.25
2016-04-29 03:09:38
Output for 5.5.24
2016-05-24 09:33:24
Output for 5.4.45
2016-01-03 19:07:42
Output for 5.4.44
2016-01-03 19:07:43
Output for 5.4.43
2016-01-03 19:07:44
Output for 5.4.41 - 5.4.42
2016-01-03 19:07:45
Output for 5.4.40
2016-01-03 19:07:46
Output for 5.4.39
2016-01-03 19:07:47
Output for 5.4.36 - 5.4.38
2016-01-03 19:07:48
Output for 5.4.34 - 5.4.35
2016-01-03 19:07:49
Output for 5.3.29, 5.4.32
2016-01-03 19:07:50
Output for 5.4.28 - 5.4.31
2016-01-03 19:07:51
Output for 5.4.26 - 5.4.27
2016-01-03 19:07:52
Output for 5.4.23 - 5.4.25
2016-01-03 19:07:53
Output for 5.3.28, 5.4.20 - 5.4.22
2016-01-03 19:07:54
Output for 5.4.18 - 5.4.19
2016-01-03 19:07:55
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
2016-01-03 19:07:56
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.14
2016-01-03 19:07:57
Output for 5.3.21, 5.4.11
2016-01-03 19:07:58