3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new DateTime; var_dump($x); define('DateTime', '/r/lolphp'); $e = class_exists(DateTime); var_dump($e);
based on U3ajK
Output for 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.005467" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.004445" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.003138" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.012287" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.010481" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.003927" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.28, 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:58:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 04:59:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 18:08:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 03:57:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 04:16:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 14:44:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 15:23:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 17:14:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 00:03:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 13:22:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 03:22:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 16:54:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 08:41:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 18:59:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 19:52:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 22:25:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 02:25:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 15:41:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 22:49:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 00:28:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 05:40:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 13:28:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-25 02:01:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 03:47:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 19:20:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 14:52:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 20:42:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 11:33:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 21:53:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 16:29:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 18:52:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 21:15:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 03:01:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 08:59:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 15:52:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.42 - 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:59:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.35 - 5.4.41
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:59:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.30 - 5.4.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-28 19:59:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.28 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-28 19:59:10" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.21 - 5.4.27
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-28 19:59:11" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.14 - 5.4.20
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-28 19:59:12" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.8 - 5.4.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-28 19:59:13" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.7
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 01:29:42" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.6
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 02:47:03" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.5
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 04:22:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.4
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 05:55:10" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.3
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 07:36:50" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.2
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-27 09:20:10" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.28 - 5.3.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:55" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.27
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:54" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.26
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:53" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.24 - 5.3.25
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:52" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.23
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:51" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.21 - 5.3.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:50" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.20
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:49" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.19
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:48" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.18
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-02 10:39:47" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)