3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->modify("+ 365 day")->format('Y-m-d H:i:s');
based on EABlV
Output for 5.6.28, 7.0.20 - 7.2.0
2016-10-27 20:13:21
Output for 7.0.6
2017-05-03 17:58:00
Output for 7.0.5
2017-04-03 06:25:39
Output for 7.0.4
2017-03-10 18:10:47
Output for 7.0.3
2017-03-18 18:59:05
Output for 7.0.2
2017-03-23 01:23:06
Output for 7.0.1
2017-03-24 05:06:50
Output for 7.0.0
2017-03-27 07:03:30
Output for 5.6.21
2017-05-02 13:08:47
Output for 5.6.20
2017-04-10 05:24:56
Output for 5.6.19
2017-03-08 02:21:03
Output for 5.6.18
2017-03-15 11:02:36
Output for 5.6.17
2017-03-19 22:43:37
Output for 5.6.16
2017-03-28 07:50:39
Output for 5.6.15
2017-03-29 08:41:26
Output for 5.6.14
2017-04-02 10:34:31
Output for 5.6.13
2017-04-15 14:55:26
Output for 5.6.12
2017-04-20 05:24:02
Output for 5.6.11
2017-04-24 11:39:53
Output for 5.6.10
2017-04-25 13:49:32
Output for 5.6.9
2017-04-27 18:58:59
Output for 5.6.8
2017-04-30 03:52:29
Output for 5.5.35
2017-05-22 19:33:56
Output for 5.5.34
2017-04-11 07:37:08
Output for 5.5.33
2017-03-09 04:58:13
Output for 5.5.32
2017-03-17 14:41:01
Output for 5.5.31
2017-03-21 01:42:27
Output for 5.5.30
2017-04-01 10:34:56
Output for 5.5.29
2017-04-17 05:19:38
Output for 5.5.28
2017-04-21 08:37:05
Output for 5.5.27
2017-04-22 10:25:59
Output for 5.5.26
2017-04-26 16:32:25
Output for 5.5.25
2017-04-28 23:23:23
Output for 5.5.24
2017-05-24 05:58:06
Output for 5.4.44 - 5.4.45
2016-10-27 20:13:31
Output for 5.4.37 - 5.4.43
2016-10-27 20:13:32
Output for 5.4.28 - 5.4.36
2016-10-27 20:13:33
Output for 5.4.20 - 5.4.27
2016-10-27 20:13:34
Output for 5.4.12 - 5.4.19
2016-10-27 20:13:35
Output for 5.4.4 - 5.4.11
2016-10-27 20:13:36
Output for 5.4.0 - 5.4.3
2016-10-27 20:13:37
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ZF1m3 on line 2
Process exited with code 255.