3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('+1 day'))->format('Y-m-d H:i:s');
based on vgY0B
Output for 5.6.28, 7.0.20 - 7.2.0
2016-01-19 14:47:22
Output for 7.0.6
2016-05-22 13:57:41
Output for 7.0.5
2016-04-04 09:53:53
Output for 7.0.4
2016-03-11 22:01:28
Output for 7.0.3
2016-03-19 23:36:07
Output for 7.0.2
2016-03-24 05:43:52
Output for 7.0.1
2016-03-25 08:46:15
Output for 7.0.0
2016-03-28 10:39:10
Output for 5.6.21
2016-05-03 16:48:25
Output for 5.6.20
2016-04-11 08:56:15
Output for 5.6.19
2016-03-09 06:11:32
Output for 5.6.18
2016-03-16 15:10:18
Output for 5.6.17
2016-03-21 02:42:19
Output for 5.6.16
2016-03-29 11:29:02
Output for 5.6.15
2016-03-30 12:18:40
Output for 5.6.14
2016-04-15 18:01:01
Output for 5.6.13
2016-04-16 18:40:00
Output for 5.6.12
2016-04-21 09:10:27
Output for 5.6.11
2016-04-25 15:36:25
Output for 5.6.10
2016-04-26 17:42:08
Output for 5.6.9
2016-04-28 23:10:16
Output for 5.6.8
2016-05-01 07:36:40
Output for 5.5.35
2016-05-24 02:53:26
Output for 5.5.34
2016-04-12 11:11:07
Output for 5.5.33
2016-03-10 09:16:35
Output for 5.5.32
2016-03-18 19:09:04
Output for 5.5.31
2016-03-22 05:55:11
Output for 5.5.30
2016-04-02 14:09:59
Output for 5.5.29
2016-04-18 08:57:56
Output for 5.5.28
2016-04-22 12:30:03
Output for 5.5.27
2016-04-23 14:07:34
Output for 5.5.26
2016-04-27 20:23:48
Output for 5.5.25
2016-04-30 03:50:30
Output for 5.5.24
2016-05-25 10:21:56
Output for 5.4.45
2016-01-19 14:47:27
Output for 5.4.44
2016-01-19 14:47:28
Output for 5.4.41 - 5.4.43
2016-01-19 14:47:29
Output for 5.4.40
2016-01-19 14:47:30
Output for 5.4.37 - 5.4.39
2016-01-19 14:47:31
Output for 5.4.35 - 5.4.36
2016-01-19 14:47:32
Output for 5.4.32 - 5.4.34
2016-01-19 14:47:33
Output for 5.4.29 - 5.4.31
2016-01-19 14:47:34
Output for 5.4.25 - 5.4.28
2016-01-19 14:47:35
Output for 5.4.22 - 5.4.24
2016-01-19 14:47:36
Output for 5.4.19 - 5.4.21
2016-01-19 14:47:37
Output for 5.4.17 - 5.4.18
2016-01-19 14:47:38
Output for 5.4.13 - 5.4.16
2016-01-19 14:47:39
Output for 5.4.12
2016-01-19 14:47:40
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/jZngK on line 3
Process exited with code 255.