3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = new \DateTime('now', new \DateTimeZone('Indian/Comoro')); var_dump($time);
based on Yd0E7
Output for 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.003875" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.003879" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.002770" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.007266" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.005767" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.003990" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.28, 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 19:44:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 08:08:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 20:56:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 22:08:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 04:15:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 07:51:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 08:47:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 14:53:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 07:08:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 05:08:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 13:52:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 01:31:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 09:34:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 10:25:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 12:15:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 16:42:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 07:10:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 13:33:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 15:36:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 20:46:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 05:37:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 22:31:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 09:19:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 07:53:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 17:47:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 04:34:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 12:19:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 07:04:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 10:25:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 12:10:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 18:19:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 01:14:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 17:23:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.44
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.41 - 5.4.43
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.40
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.38 - 5.4.39
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.35 - 5.4.37
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.30 - 5.4.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 16:38:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.3.29, 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:27" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.26 - 5.4.28
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:28" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.3.28, 5.4.23 - 5.4.25
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:29" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.4.19 - 5.4.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:30" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.3.27, 5.4.16 - 5.4.18
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:31" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.3.23 - 5.3.26, 5.4.13 - 5.4.15
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:32" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }
Output for 5.3.19 - 5.3.22, 5.4.9 - 5.4.12
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 16:38:33" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Indian/Comoro" }