3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(new DateTime('now'));
Output for 7.1.0
DateTime Object ( [date] => 2012-08-27 22:23:33.005986 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.28, 7.0.12 - 7.0.14
DateTime Object ( [date] => 2012-08-27 22:23:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTime Object ( [date] => 2016-05-03 15:03:36.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTime Object ( [date] => 2016-04-03 03:40:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTime Object ( [date] => 2016-03-10 15:00:44.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTime Object ( [date] => 2016-03-18 15:39:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTime Object ( [date] => 2016-03-22 21:45:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTime Object ( [date] => 2016-03-24 02:11:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTime Object ( [date] => 2016-03-27 04:10:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for hhvm-3.12.0
DateTime Object ( [date] => 2016-03-27 07:22:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for hhvm-3.10.0
DateTime Object ( [date] => 2016-03-30 20:16:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTime Object ( [date] => 2016-05-02 10:15:23.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTime Object ( [date] => 2016-04-10 02:36:36.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTime Object ( [date] => 2016-03-07 22:45:05.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTime Object ( [date] => 2016-03-15 07:36:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTime Object ( [date] => 2016-03-19 19:35:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTime Object ( [date] => 2016-03-28 04:59:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTime Object ( [date] => 2016-03-29 05:52:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTime Object ( [date] => 2016-04-02 07:55:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTime Object ( [date] => 2016-04-15 12:06:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTime Object ( [date] => 2016-04-20 02:25:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTime Object ( [date] => 2016-04-23 09:01:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTime Object ( [date] => 2016-04-25 10:52:24.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTime Object ( [date] => 2016-04-27 15:58:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTime Object ( [date] => 2016-04-30 00:18:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTime Object ( [date] => 2016-05-22 14:25:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTime Object ( [date] => 2016-04-11 04:52:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTime Object ( [date] => 2016-03-09 01:50:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTime Object ( [date] => 2016-03-17 11:05:17.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTime Object ( [date] => 2016-03-20 22:20:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTime Object ( [date] => 2016-04-01 07:45:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTime Object ( [date] => 2016-04-17 02:25:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTime Object ( [date] => 2016-04-21 05:36:24.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTime Object ( [date] => 2016-04-22 07:38:43.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTime Object ( [date] => 2016-04-26 13:31:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTime Object ( [date] => 2016-04-28 19:59:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTime Object ( [date] => 2016-05-24 03:07:17.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.45
DateTime Object ( [date] => 2015-09-23 13:48:24.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.44
DateTime Object ( [date] => 2015-09-23 13:48:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.43
DateTime Object ( [date] => 2015-09-23 13:48:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.42
DateTime Object ( [date] => 2015-09-23 13:48:12.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.41
DateTime Object ( [date] => 2015-09-23 13:48:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.40
DateTime Object ( [date] => 2015-09-23 13:48:08.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.39
DateTime Object ( [date] => 2015-09-23 13:48:05.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.38
DateTime Object ( [date] => 2015-09-23 13:48:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.37
DateTime Object ( [date] => 2015-09-23 13:48:02.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.36
DateTime Object ( [date] => 2015-09-23 13:48:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.35
DateTime Object ( [date] => 2015-09-23 13:47:59.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.34
DateTime Object ( [date] => 2015-09-23 13:47:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.32
DateTime Object ( [date] => 2015-09-23 13:47:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.31
DateTime Object ( [date] => 2015-09-23 13:47:52.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30
DateTime Object ( [date] => 2015-09-23 13:47:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.29
DateTime Object ( [date] => 2015-09-23 13:47:50 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.28
DateTime Object ( [date] => 2015-09-23 13:47:49 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.27
DateTime Object ( [date] => 2015-09-23 13:47:48 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.26
DateTime Object ( [date] => 2015-09-23 13:47:47 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.25
DateTime Object ( [date] => 2015-09-23 13:47:45 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.24
DateTime Object ( [date] => 2015-09-23 13:47:44 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.23
DateTime Object ( [date] => 2015-09-23 13:47:43 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.22
DateTime Object ( [date] => 2015-09-23 13:47:41 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.21
DateTime Object ( [date] => 2015-09-23 13:47:40 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.20
DateTime Object ( [date] => 2015-09-23 13:47:39 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.19
DateTime Object ( [date] => 2015-09-23 13:47:37 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.18
DateTime Object ( [date] => 2015-09-23 13:47:36 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.17
DateTime Object ( [date] => 2015-09-23 13:47:34 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.26, 5.4.16
DateTime Object ( [date] => 2015-09-23 13:47:33 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.14 - 5.4.15
DateTime Object ( [date] => 2015-09-23 13:47:31 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.24, 5.4.13
DateTime Object ( [date] => 2015-09-23 13:47:30 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22, 5.4.12
DateTime Object ( [date] => 2015-09-23 13:47:28 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.21, 5.4.11
DateTime Object ( [date] => 2015-09-23 13:47:27 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.10
DateTime Object ( [date] => 2015-09-23 13:47:25 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.19, 5.4.9
DateTime Object ( [date] => 2015-09-23 13:47:24 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.18, 5.4.8
DateTime Object ( [date] => 2015-09-23 13:47:23 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.6 - 5.4.7
DateTime Object ( [date] => 2015-09-23 13:47:21 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.5
DateTime Object ( [date] => 2015-09-23 13:47:19 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.14, 5.4.4
DateTime Object ( [date] => 2015-09-23 13:47:18 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.13, 5.4.3
DateTime Object ( [date] => 2015-09-23 13:47:17 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.11, 5.4.2
DateTime Object ( [date] => 2015-09-23 13:47:15 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.0 - 5.4.1
DateTime Object ( [date] => 2015-09-23 13:47:14 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.29
DateTime Object ( [date] => 2015-09-23 13:47:53 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.28
DateTime Object ( [date] => 2015-09-23 13:47:42 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.27
DateTime Object ( [date] => 2015-09-23 13:47:35 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.25
DateTime Object ( [date] => 2015-09-23 13:47:32 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.23
DateTime Object ( [date] => 2015-09-23 13:47:29 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.20
DateTime Object ( [date] => 2015-09-23 13:47:26 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.17
DateTime Object ( [date] => 2015-09-23 13:47:22 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.15 - 5.3.16
DateTime Object ( [date] => 2015-09-23 13:47:20 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.12
DateTime Object ( [date] => 2015-09-23 13:47:16 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.9 - 5.3.10
DateTime Object ( [date] => 2015-09-23 13:47:13 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.8
DateTime Object ( [date] => 2015-09-23 13:47:12 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.6 - 5.3.7
DateTime Object ( [date] => 2015-09-23 13:47:11 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.5
DateTime Object ( [date] => 2015-09-23 13:47:10 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.4
DateTime Object ( [date] => 2015-09-23 13:47:08 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.3
DateTime Object ( [date] => 2015-09-23 13:47:07 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.2
DateTime Object ( [date] => 2015-09-23 13:47:06 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.1
DateTime Object ( [date] => 2015-09-23 13:47:04 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.0
DateTime Object ( [date] => 2015-09-23 13:47:03 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.2.0 - 5.2.17
DateTime Object ( )
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/D6Dv7 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/D6Dv7 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/D6Dv7 on line 2