3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime = new DateTime(); $runs = 2; for($i = 1; $i <= ($runs*2); $i++) { $datetime->modify('+1 day'); echo date_format($datetime, 'Y-m-d H:i'); }
based on kN5F5
Output for 5.3.27 - 5.3.29, 5.4.18 - 5.4.45, 7.0.20 - 7.2.0
2015-11-24 13:422015-11-25 13:422015-11-26 13:422015-11-27 13:42
Output for 7.0.6
2016-05-04 19:122016-05-05 19:122016-05-06 19:122016-05-07 19:12
Output for 7.0.5
2016-04-04 07:352016-04-05 07:352016-04-06 07:352016-04-07 07:35
Output for 7.0.4
2016-03-11 19:252016-03-12 19:252016-03-13 19:252016-03-14 19:25
Output for 7.0.3
2016-03-19 20:402016-03-20 20:402016-03-21 20:402016-03-22 20:40
Output for 7.0.2
2016-03-24 02:492016-03-25 02:492016-03-26 02:492016-03-27 03:49
Output for 7.0.1
2016-03-25 06:192016-03-26 06:192016-03-27 06:192016-03-28 06:19
Output for 7.0.0
2016-03-28 08:142016-03-29 08:142016-03-30 08:142016-03-31 08:14
Output for 5.6.21
2016-05-03 14:212016-05-04 14:212016-05-05 14:212016-05-06 14:21
Output for 5.6.20
2016-04-11 06:352016-04-12 06:352016-04-13 06:352016-04-14 06:35
Output for 5.6.19
2016-03-09 03:372016-03-10 03:372016-03-11 03:372016-03-12 03:37
Output for 5.6.18
2016-03-16 12:252016-03-17 12:252016-03-18 12:252016-03-19 12:25
Output for 5.6.17
2016-03-21 00:002016-03-22 00:002016-03-23 00:002016-03-24 00:00
Output for 5.6.16
2016-03-29 09:032016-03-30 09:032016-03-31 09:032016-04-01 09:03
Output for 5.6.15
2016-03-30 09:522016-03-31 09:522016-04-01 09:522016-04-02 09:52
Output for 5.6.14
2016-04-03 11:412016-04-04 11:412016-04-05 11:412016-04-06 11:41
Output for 5.6.13
2016-04-16 16:112016-04-17 16:112016-04-18 16:112016-04-19 16:11
Output for 5.6.12
2016-04-21 06:392016-04-22 06:392016-04-23 06:392016-04-24 06:39
Output for 5.6.11
2016-04-25 13:032016-04-26 13:032016-04-27 13:032016-04-28 13:03
Output for 5.6.10
2016-04-26 15:052016-04-27 15:052016-04-28 15:052016-04-29 15:05
Output for 5.6.9
2016-04-28 20:152016-04-29 20:152016-04-30 20:152016-05-01 20:15
Output for 5.6.8
2016-05-01 05:072016-05-02 05:072016-05-03 05:072016-05-04 05:07
Output for 5.5.35
2016-05-23 22:292016-05-24 22:292016-05-25 22:292016-05-26 22:29
Output for 5.5.34
2016-04-12 08:462016-04-13 08:462016-04-14 08:462016-04-15 08:46
Output for 5.5.33
2016-03-10 06:252016-03-11 06:252016-03-12 06:252016-03-13 06:25
Output for 5.5.32
2016-03-18 16:162016-03-19 16:162016-03-20 16:162016-03-21 16:16
Output for 5.5.31
2016-03-22 03:052016-03-23 03:052016-03-24 03:052016-03-25 03:05
Output for 5.5.30
2016-04-02 11:452016-04-03 11:452016-04-04 11:452016-04-05 11:45
Output for 5.5.29
2016-04-18 06:322016-04-19 06:322016-04-20 06:322016-04-21 06:32
Output for 5.5.28
2016-04-22 09:542016-04-23 09:542016-04-24 09:542016-04-25 09:54
Output for 5.5.27
2016-04-23 11:382016-04-24 11:382016-04-25 11:382016-04-26 11:38
Output for 5.5.26
2016-04-27 17:482016-04-28 17:482016-04-29 17:482016-04-30 17:48
Output for 5.5.25
2016-04-30 01:082016-05-01 01:082016-05-02 01:082016-05-03 01:08
Output for 5.5.24
2016-05-25 07:242016-05-26 07:242016-05-27 07:242016-05-28 07:24
Output for 5.3.20 - 5.3.26, 5.4.10 - 5.4.17
2015-11-24 13:432015-11-25 13:432015-11-26 13:432015-11-27 13:43