3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $away_date = (new DateTime()); $away_date->add(new DateInterval('P10D')); echo $away_date->format('Y-m-d H:i:s');
based on HRXlE
Output for 5.6.28, 7.0.20 - 7.2.0
2015-11-09 01:10:13
Output for 7.0.6
2016-05-13 18:00:42
Output for 7.0.5
2016-04-13 06:28:16
Output for 7.0.4
2016-03-20 18:13:30
Output for 7.0.3
2016-03-28 19:16:37
Output for 7.0.2
2016-04-02 01:26:08
Output for 7.0.1
2016-04-03 05:09:29
Output for 7.0.0
2016-04-06 07:06:10
Output for 5.6.21
2016-05-12 13:11:29
Output for 5.6.20
2016-04-20 05:27:32
Output for 5.6.19
2016-03-18 02:23:48
Output for 5.6.18
2016-03-25 11:05:54
Output for 5.6.17
2016-03-29 22:46:26
Output for 5.6.16
2016-04-07 07:53:15
Output for 5.6.15
2016-04-08 08:44:05
Output for 5.6.14
2016-04-12 10:36:58
Output for 5.6.13
2016-04-25 14:58:05
Output for 5.6.12
2016-04-30 05:26:45
Output for 5.6.11
2016-05-04 11:42:45
Output for 5.6.10
2016-05-05 13:52:16
Output for 5.6.9
2016-05-07 19:01:59
Output for 5.6.8
2016-05-10 03:55:13
Output for 5.5.35
2016-06-01 19:37:07
Output for 5.5.34
2016-04-21 07:39:37
Output for 5.5.33
2016-03-19 05:01:31
Output for 5.5.32
2016-03-27 14:43:53
Output for 5.5.31
2016-03-31 01:45:32
Output for 5.5.30
2016-04-11 10:37:32
Output for 5.5.29
2016-04-27 05:22:18
Output for 5.5.28
2016-05-01 08:39:52
Output for 5.5.27
2016-05-02 10:28:36
Output for 5.5.26
2016-05-06 16:35:07
Output for 5.5.25
2016-05-08 23:26:09
Output for 5.5.24
2016-06-03 06:00:43
Output for 5.4.38 - 5.4.45
2015-11-09 01:10:23
Output for 5.4.29 - 5.4.37
2015-11-09 01:10:24
Output for 5.4.22 - 5.4.28
2015-11-09 01:10:25
Output for 5.4.14 - 5.4.21
2015-11-09 01:10:26
Output for 5.4.6 - 5.4.13
2015-11-09 01:10:27
Output for 5.3.27 - 5.4.5
2015-11-09 01:10:28
Output for 5.3.19 - 5.3.26
2015-11-09 01:10:29