3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \Datetime(); var_dump(get_object_vars($a));
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
array(0) { }
Output for 7.3.33
array(3) { ["date"]=> string(26) "2015-12-15 11:35:09.002371" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.3.32
array(3) { ["date"]=> string(26) "2015-12-15 11:35:09.002081" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.3.31
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003328" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.30
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003282" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.29
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003432" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.28
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.011260" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.27
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008656" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.26
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008671" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.25
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008652" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.24
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008260" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.23
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008380" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.21
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008263" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.20
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.011216" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.19
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008366" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.18
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.004593" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.17
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.015029" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.16
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008392" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000112" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000107" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.33
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.012125" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.32
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.018340" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.31
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008236" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.30
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.009836" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.29
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.008367" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.13
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000130" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.12
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000142" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000129" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.10
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000131" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.7, 7.2.9
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000085" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.8
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000089" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000125" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.5
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000109" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.4
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000092" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2 - 7.2.3
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000124" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000097" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000098" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.25
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.000093" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
array(3) { ["date"]=> string(26) "2015-12-15 12:35:09.003139" ["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" }

preferences:
163.04 ms | 401 KiB | 198 Q