3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expiration_date_time = date_add(new DateTime(), new DateInterval('P1D')); echo $expiration_date_time->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
2014-05-07 22:36:54
Output for 7.0.6
2016-05-04 06:53:27
Output for 7.0.5
2016-04-03 19:53:56
Output for 7.0.4
2016-03-11 06:01:42
Output for 7.0.3
2016-03-19 06:28:25
Output for 7.0.2
2016-03-23 12:00:10
Output for 7.0.1
2016-03-24 17:24:22
Output for 7.0.0
2016-03-27 19:06:37
Output for hhvm-3.12.0
2016-03-12 15:08:08
Output for hhvm-3.10.0
2016-03-31 04:01:44
Output for 5.6.21
2016-05-03 02:10:33
Output for 5.6.20
2016-04-10 15:10:42
Output for 5.6.19
2016-03-08 07:00:17
Output for 5.6.18
2016-03-15 20:06:39
Output for 5.6.17
2016-03-20 10:49:05
Output for 5.6.16
2016-03-28 20:51:31
Output for 5.6.15
2016-03-29 21:43:56
Output for 5.6.14
2016-04-03 00:12:37
Output for 5.6.13
2016-04-16 04:16:43
Output for 5.6.12
2016-04-20 17:48:06
Output for 5.6.11
2016-04-24 00:46:18
Output for 5.6.10
2016-04-26 02:37:41
Output for 5.6.9
2016-04-28 07:36:17
Output for 5.6.8
2016-04-30 15:30:00
Output for 5.6.7
2016-05-26 07:22:40
Output for 5.5.35
2016-05-23 05:48:16
Output for 5.5.34
2016-04-11 21:08:21
Output for 5.5.33
2016-03-09 16:55:38
Output for 5.5.32
2016-03-17 22:58:18
Output for 5.5.31
2016-03-21 13:37:51
Output for 5.5.30
2016-04-01 23:43:52
Output for 5.5.29
2016-04-17 18:21:52
Output for 5.5.28
2016-04-21 20:51:58
Output for 5.5.27
2016-04-22 23:18:47
Output for 5.5.26
2016-04-27 05:03:45
Output for 5.5.25
2016-04-29 11:06:08
Output for 5.5.24
2016-05-24 18:00:10
Output for 5.4.45
2015-09-21 22:05:05
Output for 5.4.44
2015-09-21 22:05:00
Output for 5.4.43
2015-09-21 22:04:55
Output for 5.4.42
2015-09-21 22:04:53
Output for 5.4.41
2015-05-16 19:51:25
Output for 5.4.40
2015-05-16 19:51:20
Output for 5.4.39
2015-05-16 19:51:19
Output for 5.4.38
2015-03-04 03:01:21
Output for 5.4.37
2015-02-10 18:07:08
Output for 5.4.34 - 5.4.36
2015-02-10 18:07:07
Output for 5.4.32
2014-09-11 08:44:14
Output for 5.4.31
2014-09-11 08:44:12
Output for 5.4.29 - 5.4.30
2014-09-11 08:44:08
Output for 5.4.14 - 5.4.28
2014-05-07 22:36:56
Output for 5.3.24 - 5.3.28, 5.4.0 - 5.4.13
2014-05-07 22:36:57
Output for 5.3.29
2014-09-11 08:44:09
Output for 5.3.6 - 5.3.23
2014-05-07 22:36:58
Output for 5.3.0 - 5.3.5
2014-05-07 22:36:59
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function date_add() in /in/iHuaa on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_add() in /in/iHuaa on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_add() in /in/iHuaa on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_add() in /in/iHuaa on line 3