3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((array)new datetime());
based on QeCoQ
Output for 7.1.0
array(3) { ["date"]=> string(26) "2014-09-06 05:35:13.004065" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.14
array(3) { ["date"]=> string(26) "2014-09-06 05:35:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
array(3) { ["date"]=> string(26) "2016-05-03 09:40:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
array(3) { ["date"]=> string(26) "2016-04-02 22:33:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
array(3) { ["date"]=> string(26) "2016-03-10 09:05:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
array(3) { ["date"]=> string(26) "2016-03-18 09:42:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
array(3) { ["date"]=> string(26) "2016-03-22 15:36:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
array(3) { ["date"]=> string(26) "2016-03-23 20:21:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
array(3) { ["date"]=> string(26) "2016-03-26 21:54:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.12.0
array(3) { ["date"]=> string(26) "2016-03-11 22:07:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.10.0
array(3) { ["date"]=> string(26) "2016-03-30 11:10:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
array(3) { ["date"]=> string(26) "2016-05-02 05:02:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
array(3) { ["date"]=> string(26) "2016-04-09 21:29:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
array(3) { ["date"]=> string(26) "2016-03-07 17:13:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
array(3) { ["date"]=> string(26) "2016-03-15 01:07:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
array(3) { ["date"]=> string(26) "2016-03-19 13:58:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
array(3) { ["date"]=> string(26) "2016-03-27 23:39:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
array(3) { ["date"]=> string(26) "2016-03-29 00:45:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
array(3) { ["date"]=> string(26) "2016-04-02 03:05:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
array(3) { ["date"]=> string(26) "2016-04-15 06:59:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
array(3) { ["date"]=> string(26) "2016-04-19 20:44:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
array(3) { ["date"]=> string(26) "2016-04-23 03:48:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
array(3) { ["date"]=> string(26) "2016-04-25 05:32:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
array(3) { ["date"]=> string(26) "2016-04-27 10:30:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
array(3) { ["date"]=> string(26) "2016-04-29 18:34:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
array(3) { ["date"]=> string(26) "2016-05-22 08:45:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
array(3) { ["date"]=> string(26) "2016-04-10 23:50:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
array(3) { ["date"]=> string(26) "2016-03-08 20:10:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
array(3) { ["date"]=> string(26) "2016-03-17 02:50:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
array(3) { ["date"]=> string(26) "2016-03-20 16:43:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
array(3) { ["date"]=> string(26) "2016-04-01 02:40:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
array(3) { ["date"]=> string(26) "2016-04-16 21:05:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
array(3) { ["date"]=> string(26) "2016-04-20 23:49:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
array(3) { ["date"]=> string(26) "2016-04-22 02:19:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
array(3) { ["date"]=> string(26) "2016-04-26 07:59:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
array(3) { ["date"]=> string(26) "2016-04-28 14:17:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
array(3) { ["date"]=> string(26) "2016-05-23 21:37:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
array(3) { ["date"]=> string(26) "2015-09-21 13:15:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
array(3) { ["date"]=> string(26) "2015-09-21 13:15:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.43
array(3) { ["date"]=> string(26) "2015-09-21 13:15:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42
array(3) { ["date"]=> string(26) "2015-09-21 13:15:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
array(3) { ["date"]=> string(26) "2015-09-21 13:15:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40
array(3) { ["date"]=> string(26) "2015-09-21 13:15:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.39
array(3) { ["date"]=> string(26) "2015-09-21 13:15:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.38
array(3) { ["date"]=> string(26) "2015-03-05 13:23:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36 - 5.4.37
array(3) { ["date"]=> string(26) "2015-03-05 13:23:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.35
array(3) { ["date"]=> string(26) "2015-03-05 13:23:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.32
array(3) { ["date"]=> string(26) "2014-09-06 05:35:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.15 - 5.4.29
array(3) { ["date"]=> string(19) "2014-09-06 05:35:17" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.22 - 5.4.14
array(3) { ["date"]=> string(19) "2014-09-06 05:35:18" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.2 - 5.3.21
array(3) { ["date"]=> string(19) "2014-09-06 05:35:19" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.0 - 5.3.1
array(3) { ["date"]=> string(19) "2014-09-06 05:35:20" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.2.0 - 5.2.17
array(0) { }
Output for 5.0.0 - 5.1.6
Fatal error: Class 'datetime' not found in /in/uIqta on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/uIqta on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/uIqta on line 3