3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime(); $now->format('Y-m-d H:i:s'); print_r($now);
based on pdTK5
Output for 7.2.0
DateTime Object ( [date] => 2015-09-08 00:14:28.003862 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.10
DateTime Object ( [date] => 2015-09-08 00:14:28.208516 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.7
DateTime Object ( [date] => 2015-09-08 00:14:28.003511 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
DateTime Object ( [date] => 2015-09-08 00:14:28.009563 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.5
DateTime Object ( [date] => 2015-09-08 00:14:28.011606 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.0
DateTime Object ( [date] => 2015-09-08 00:14:28.005052 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.28, 7.0.20
DateTime Object ( [date] => 2015-09-08 00:14:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTime Object ( [date] => 2016-05-03 07:57:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTime Object ( [date] => 2016-04-02 20:55:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTime Object ( [date] => 2016-03-10 07:10:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTime Object ( [date] => 2016-03-18 07:42:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTime Object ( [date] => 2016-03-22 13:27:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTime Object ( [date] => 2016-03-23 18:29:55.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTime Object ( [date] => 2016-03-26 20:10:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTime Object ( [date] => 2016-05-02 03:16:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTime Object ( [date] => 2016-04-09 19:44:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTime Object ( [date] => 2016-03-07 15:15:59.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTime Object ( [date] => 2016-03-14 23:00:07.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTime Object ( [date] => 2016-03-19 12:00:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTime Object ( [date] => 2016-03-27 21:55:55.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTime Object ( [date] => 2016-03-28 22:49:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTime Object ( [date] => 2016-04-02 01:23:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTime Object ( [date] => 2016-04-15 05:19:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTime Object ( [date] => 2016-04-19 18:55:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTime Object ( [date] => 2016-04-23 01:54:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTime Object ( [date] => 2016-04-25 03:45:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTime Object ( [date] => 2016-04-27 08:42:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTime Object ( [date] => 2016-04-29 16:41:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.7
DateTime Object ( [date] => 2016-05-25 10:39:02.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTime Object ( [date] => 2016-05-22 06:58:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTime Object ( [date] => 2016-04-10 22:11:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTime Object ( [date] => 2016-03-08 18:06:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTime Object ( [date] => 2016-03-17 00:51:55.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTime Object ( [date] => 2016-03-20 14:48:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTime Object ( [date] => 2016-04-01 00:57:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTime Object ( [date] => 2016-04-16 19:24:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTime Object ( [date] => 2016-04-20 22:00:42.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTime Object ( [date] => 2016-04-22 00:31:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTime Object ( [date] => 2016-04-26 06:11:24.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTime Object ( [date] => 2016-04-28 12:14:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTime Object ( [date] => 2016-05-23 19:09:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.41 - 5.4.45
DateTime Object ( [date] => 2015-09-08 00:14:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.35 - 5.4.40
DateTime Object ( [date] => 2015-09-08 00:14:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30 - 5.4.34
DateTime Object ( [date] => 2015-09-08 00:14:40.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.27 - 5.4.29
DateTime Object ( [date] => 2015-09-08 00:14:40 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.20 - 5.4.26
DateTime Object ( [date] => 2015-09-08 00:14:41 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.13 - 5.4.19
DateTime Object ( [date] => 2015-09-08 00:14:42 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.7 - 5.4.12
DateTime Object ( [date] => 2015-09-08 00:14:43 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.6
DateTime Object ( [date] => 2015-10-27 03:14:12 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.5
DateTime Object ( [date] => 2015-10-27 04:45:14 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.4
DateTime Object ( [date] => 2015-10-27 06:20:06 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.3
DateTime Object ( [date] => 2015-10-27 08:01:27 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.2
DateTime Object ( [date] => 2015-10-27 09:46:49 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.29
DateTime Object ( [date] => 2015-09-20 16:41:10 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.27 - 5.3.28
DateTime Object ( [date] => 2015-09-20 16:41:09 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.24 - 5.3.26
DateTime Object ( [date] => 2015-09-20 16:41:08 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22 - 5.3.23
DateTime Object ( [date] => 2015-09-20 16:41:07 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.20 - 5.3.21
DateTime Object ( [date] => 2015-09-20 16:41:06 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.17 - 5.3.19
DateTime Object ( [date] => 2015-09-20 16:41:05 [timezone_type] => 3 [timezone] => Europe/Amsterdam )