3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = new DateTime('first day of previous 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 ueQm1
Output for 5.6.28, 7.0.20 - 7.3.0beta1
2015-11-01 12:00:00 2015-12-13 14:47:38bool(false)
Output for 7.0.6
2016-04-01 12:00:00 2016-05-05 20:20:25bool(false)
Output for 7.0.5
2016-03-01 12:00:00 2016-04-05 08:38:36bool(false)
Output for 7.0.4
2016-02-01 12:00:00 2016-03-12 20:36:44bool(false)
Output for 7.0.3
2016-02-01 12:00:00 2016-03-20 22:00:03bool(false)
Output for 7.0.2
2016-02-01 12:00:00 2016-03-25 04:14:21bool(false)
Output for 7.0.1
2016-02-01 12:00:00 2016-03-26 07:27:10bool(false)
Output for 7.0.0
2016-02-01 12:00:00 2016-03-29 09:21:10bool(false)
Output for 5.6.21
2016-04-01 12:00:00 2016-05-04 15:29:15bool(false)
Output for 5.6.20
2016-03-01 12:00:00 2016-04-12 07:40:06bool(false)
Output for 5.6.19
2016-02-01 12:00:00 2016-03-10 04:49:03bool(false)
Output for 5.6.18
2016-02-01 12:00:00 2016-03-17 13:40:56bool(false)
Output for 5.6.17
2016-02-01 12:00:00 2016-03-22 01:15:23bool(false)
Output for 5.6.16
2016-02-01 12:00:00 2016-03-30 10:10:04bool(false)
Output for 5.6.15
2016-02-01 12:00:00 2016-03-31 10:59:16bool(false)
Output for 5.6.14
2016-03-01 12:00:00 2016-04-16 16:40:20bool(false)
Output for 5.6.13
2016-03-01 12:00:00 2016-04-17 17:20:56bool(false)
Output for 5.6.12
2016-03-01 12:00:00 2016-04-22 07:48:16bool(false)
Output for 5.6.11
2016-03-01 12:00:00 2016-04-26 14:13:43bool(false)
Output for 5.6.10
2016-03-01 12:00:00 2016-04-27 16:18:25bool(false)
Output for 5.6.9
2016-03-01 12:00:00 2016-04-29 21:26:18bool(false)
Output for 5.6.8
2016-03-01 12:00:00 2016-05-02 06:16:05bool(false)
Output for 5.5.35
2016-04-01 12:00:00 2016-05-25 00:42:54bool(false)
Output for 5.5.34
2016-03-01 12:00:00 2016-04-13 09:52:02bool(false)
Output for 5.5.33
2016-02-01 12:00:00 2016-03-11 07:44:56bool(false)
Output for 5.5.32
2016-02-01 12:00:00 2016-03-19 17:35:57bool(false)
Output for 5.5.31
2016-02-01 12:00:00 2016-03-23 04:22:18bool(false)
Output for 5.5.30
2016-03-01 12:00:00 2016-04-03 12:51:37bool(false)
Output for 5.5.29
2016-03-01 12:00:00 2016-04-19 07:38:28bool(false)
Output for 5.5.28
2016-03-01 12:00:00 2016-04-23 11:06:05bool(false)
Output for 5.5.27
2016-03-01 12:00:00 2016-04-24 12:46:47bool(false)
Output for 5.5.26
2016-03-01 12:00:00 2016-04-28 18:57:44bool(false)
Output for 5.5.25
2016-03-01 12:00:00 2016-05-01 02:23:00bool(false)
Output for 5.5.24
2016-04-01 12:00:00 2016-05-26 08:49:42bool(false)
Output for 5.4.44 - 5.4.45
2015-11-01 12:00:00 2015-12-13 14:47:41bool(false)
Output for 5.4.42 - 5.4.43
2015-11-01 12:00:00 2015-12-13 14:47:43bool(false)
Output for 5.4.40 - 5.4.41
2015-11-01 12:00:00 2015-12-13 14:47:44bool(false)
Output for 5.4.39
2015-11-01 12:00:00 2015-12-13 14:47:45bool(false)
Output for 5.4.36 - 5.4.38
2015-11-01 12:00:00 2015-12-13 14:47:46bool(false)
Output for 5.4.34 - 5.4.35
2015-11-01 12:00:00 2015-12-13 14:47:47bool(false)
Output for 5.3.29, 5.4.31 - 5.4.32
2015-11-01 12:00:00 2015-12-13 14:47:48bool(false)
Output for 5.4.26 - 5.4.30
2015-11-01 12:00:00 2015-12-13 14:47:49bool(false)
Output for 5.3.28, 5.4.23 - 5.4.25
2015-11-01 12:00:00 2015-12-13 14:47:50bool(false)
Output for 5.4.19 - 5.4.22
2015-11-01 12:00:00 2015-12-13 14:47:51bool(false)
Output for 5.3.27, 5.4.16 - 5.4.18
2015-11-01 12:00:00 2015-12-13 14:47:52bool(false)
Output for 5.3.23 - 5.3.26, 5.4.12 - 5.4.15
2015-11-01 12:00:00 2015-12-13 14:47:53bool(false)
Output for 5.3.20 - 5.3.22, 5.4.10 - 5.4.11
2015-11-01 12:00:00 2015-12-13 14:47:54bool(false)