3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = new DateTime('second day, this month'); $clone = clone $today; $clone->modify('noon'); $currentGenerateDay = new DateTime('second day'); echo $clone->format('Y-m-d H:i:s').' '.$currentGenerateDay->format('Y-m-d H:i:s'); var_dump($clone == $currentGenerateDay);
based on iGqYu
Output for 5.6.28, 7.0.20 - 7.2.0
2015-12-13 12:00:00 2015-12-13 14:54:56bool(false)
Output for 7.0.6
2016-05-05 12:00:00 2016-05-05 20:20:28bool(false)
Output for 7.0.5
2016-04-05 12:00:00 2016-04-05 08:38:39bool(false)
Output for 7.0.4
2016-03-12 12:00:00 2016-03-12 20:36:49bool(false)
Output for 7.0.3
2016-03-20 12:00:00 2016-03-20 22:00:06bool(false)
Output for 7.0.2
2016-03-25 12:00:00 2016-03-25 04:14:25bool(false)
Output for 7.0.1
2016-03-26 12:00:00 2016-03-26 07:27:13bool(false)
Output for 7.0.0
2016-03-29 12:00:00 2016-03-29 09:21:13bool(false)
Output for 5.6.21
2016-05-04 12:00:00 2016-05-04 15:29:18bool(false)
Output for 5.6.20
2016-04-12 12:00:00 2016-04-12 07:40:09bool(false)
Output for 5.6.19
2016-03-10 12:00:00 2016-03-10 04:49:05bool(false)
Output for 5.6.18
2016-03-17 12:00:00 2016-03-17 13:41:00bool(false)
Output for 5.6.17
2016-03-22 12:00:00 2016-03-22 01:15:28bool(false)
Output for 5.6.16
2016-03-30 12:00:00 2016-03-30 10:10:07bool(false)
Output for 5.6.15
2016-03-31 12:00:00 2016-03-31 10:59:19bool(false)
Output for 5.6.14
2016-04-16 12:00:00 2016-04-16 16:40:23bool(false)
Output for 5.6.13
2016-04-17 12:00:00 2016-04-17 17:20:59bool(false)
Output for 5.6.12
2016-04-22 12:00:00 2016-04-22 07:48:19bool(false)
Output for 5.6.11
2016-04-26 12:00:00 2016-04-26 14:13:45bool(false)
Output for 5.6.10
2016-04-27 12:00:00 2016-04-27 16:18:29bool(false)
Output for 5.6.9
2016-04-29 12:00:00 2016-04-29 21:26:21bool(false)
Output for 5.6.8
2016-05-02 12:00:00 2016-05-02 06:16:07bool(false)
Output for 5.5.35
2016-05-25 12:00:00 2016-05-25 00:43:04bool(false)
Output for 5.5.34
2016-04-13 12:00:00 2016-04-13 09:52:05bool(false)
Output for 5.5.33
2016-03-11 12:00:00 2016-03-11 07:44:59bool(false)
Output for 5.5.32
2016-03-19 12:00:00 2016-03-19 17:36:01bool(false)
Output for 5.5.31
2016-03-23 12:00:00 2016-03-23 04:22:22bool(false)
Output for 5.5.30
2016-04-03 12:00:00 2016-04-03 12:51:40bool(false)
Output for 5.5.29
2016-04-19 12:00:00 2016-04-19 07:38:30bool(false)
Output for 5.5.28
2016-04-23 12:00:00 2016-04-23 11:06:07bool(false)
Output for 5.5.27
2016-04-24 12:00:00 2016-04-24 12:46:50bool(false)
Output for 5.5.26
2016-04-28 12:00:00 2016-04-28 18:57:47bool(false)
Output for 5.5.25
2016-05-01 12:00:00 2016-05-01 02:23:02bool(false)
Output for 5.5.24
2016-05-26 12:00:00 2016-05-26 08:49:44bool(false)
Output for 5.4.44 - 5.4.45
2015-12-13 12:00:00 2015-12-13 14:55:00bool(false)
Output for 5.4.42 - 5.4.43
2015-12-13 12:00:00 2015-12-13 14:55:02bool(false)
Output for 5.4.41
2015-12-13 12:00:00 2015-12-13 14:55:03bool(false)
Output for 5.4.40
2015-12-13 12:00:00 2015-12-13 14:55:04bool(false)
Output for 5.4.37 - 5.4.39
2015-12-13 12:00:00 2015-12-13 14:55:05bool(false)
Output for 5.4.35 - 5.4.36
2015-12-13 12:00:00 2015-12-13 14:55:06bool(false)
Output for 5.3.29, 5.4.32 - 5.4.34
2015-12-13 12:00:00 2015-12-13 14:55:07bool(false)
Output for 5.4.28 - 5.4.31
2015-12-13 12:00:00 2015-12-13 14:55:08bool(false)
Output for 5.4.25 - 5.4.27
2015-12-13 12:00:00 2015-12-13 14:55:09bool(false)
Output for 5.3.28, 5.4.22 - 5.4.24
2015-12-13 12:00:00 2015-12-13 14:55:10bool(false)
Output for 5.4.18 - 5.4.21
2015-12-13 12:00:00 2015-12-13 14:55:11bool(false)
Output for 5.3.25 - 5.3.27, 5.4.16 - 5.4.17
2015-12-13 12:00:00 2015-12-13 14:55:12bool(false)
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.15
2015-12-13 12:00:00 2015-12-13 14:55:13bool(false)
Output for 5.3.20 - 5.3.21, 5.4.10 - 5.4.11
2015-12-13 12:00:00 2015-12-13 14:55:14bool(false)