3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \Datetime(); var_dump(get_object_vars($a));
based on dYKkG
Output for 7.2.0
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.007445" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.005116" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003181" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.012284" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.006470" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003958" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.20
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
array(3) { ["date"]=> string(26) "2016-05-21 12:36:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
array(3) { ["date"]=> string(26) "2016-04-03 08:45:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
array(3) { ["date"]=> string(26) "2016-03-10 20:47:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
array(3) { ["date"]=> string(26) "2016-03-18 22:08:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
array(3) { ["date"]=> string(26) "2016-03-23 04:22:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
array(3) { ["date"]=> string(26) "2016-03-24 07:34:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
array(3) { ["date"]=> string(26) "2016-03-27 09:28:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
array(3) { ["date"]=> string(26) "2016-05-02 15:36:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
array(3) { ["date"]=> string(26) "2016-04-10 07:46:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
array(3) { ["date"]=> string(26) "2016-03-08 04:56:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
array(3) { ["date"]=> string(26) "2016-03-15 13:48:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
array(3) { ["date"]=> string(26) "2016-03-20 01:22:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
array(3) { ["date"]=> string(26) "2016-03-28 10:17:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
array(3) { ["date"]=> string(26) "2016-03-29 11:06:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
array(3) { ["date"]=> string(26) "2016-04-14 16:47:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
array(3) { ["date"]=> string(26) "2016-04-15 17:27:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
array(3) { ["date"]=> string(26) "2016-04-20 07:55:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
array(3) { ["date"]=> string(26) "2016-04-24 14:20:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
array(3) { ["date"]=> string(26) "2016-04-25 16:25:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
array(3) { ["date"]=> string(26) "2016-04-27 21:33:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
array(3) { ["date"]=> string(26) "2016-04-30 06:23:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
array(3) { ["date"]=> string(26) "2016-05-23 01:01:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
array(3) { ["date"]=> string(26) "2016-04-11 09:58:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
array(3) { ["date"]=> string(26) "2016-03-09 07:52:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
array(3) { ["date"]=> string(26) "2016-03-17 17:44:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
array(3) { ["date"]=> string(26) "2016-03-21 04:30:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
array(3) { ["date"]=> string(26) "2016-04-01 12:58:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
array(3) { ["date"]=> string(26) "2016-04-17 07:45:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
array(3) { ["date"]=> string(26) "2016-04-21 11:13:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
array(3) { ["date"]=> string(26) "2016-04-22 12:53:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
array(3) { ["date"]=> string(26) "2016-04-26 19:05:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
array(3) { ["date"]=> string(26) "2016-04-29 02:30:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
array(3) { ["date"]=> string(26) "2016-05-24 08:56:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
array(3) { ["date"]=> string(26) "2015-12-15 12:35:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
array(3) { ["date"]=> string(26) "2015-12-15 12:35:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42 - 5.4.43
array(3) { ["date"]=> string(26) "2015-12-15 12:35:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
array(3) { ["date"]=> string(26) "2015-12-15 12:35:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40
array(3) { ["date"]=> string(26) "2015-12-15 12:35:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.38 - 5.4.39
array(3) { ["date"]=> string(26) "2015-12-15 12:35:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36 - 5.4.37
array(3) { ["date"]=> string(26) "2015-12-15 12:35:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.35
array(3) { ["date"]=> string(26) "2015-12-15 12:35:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.32
array(3) { ["date"]=> string(26) "2015-12-15 12:35:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.31
array(3) { ["date"]=> string(26) "2015-12-15 12:35:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.28 - 5.4.29
array(3) { ["date"]=> string(19) "2015-12-15 12:35:24" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.25 - 5.4.27
array(3) { ["date"]=> string(19) "2015-12-15 12:35:25" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28, 5.4.23 - 5.4.24
array(3) { ["date"]=> string(19) "2015-12-15 12:35:26" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.20 - 5.4.22
array(3) { ["date"]=> string(19) "2015-12-15 12:35:27" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.27, 5.4.18 - 5.4.19
array(3) { ["date"]=> string(19) "2015-12-15 12:35:28" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.17
array(3) { ["date"]=> string(19) "2015-12-15 12:35:29" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.20 - 5.3.23, 5.4.11 - 5.4.13
array(3) { ["date"]=> string(19) "2015-12-15 12:35:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.10
array(3) { ["date"]=> string(19) "2015-12-15 12:35:31" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29
array(3) { ["date"]=> string(19) "2015-12-15 12:35:23" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }