3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = (new DateTime("+3 hour"))->format('Y-m-d H:i:s'); echo $test;
based on MNDO3
Output for 5.6.28, 7.0.20 - 7.2.0
2015-10-24 03:27:23
Output for 7.0.6
2016-05-03 05:44:23
Output for 7.0.5
2016-04-02 19:00:05
Output for 7.0.4
2016-03-10 04:33:37
Output for 7.0.3
2016-03-18 04:43:55
Output for 7.0.2
2016-03-21 15:18:29
Output for 7.0.1
2016-03-23 15:31:30
Output for 7.0.0
2016-03-26 17:58:20
Output for 5.6.21
2016-05-02 00:46:26
Output for 5.6.20
2016-04-09 14:12:22
Output for 5.6.19
2016-03-07 02:50:13
Output for 5.6.18
2016-03-14 15:11:41
Output for 5.6.17
2016-03-19 09:12:38
Output for 5.6.16
2016-03-27 19:43:02
Output for 5.6.15
2016-03-28 20:36:37
Output for 5.6.14
2016-04-01 23:13:57
Output for 5.6.13
2016-04-15 03:02:43
Output for 5.6.12
2016-04-19 16:12:53
Output for 5.6.11
2016-04-22 23:28:54
Output for 5.6.10
2016-04-25 01:08:44
Output for 5.6.9
2016-04-27 06:19:05
Output for 5.6.8
2016-04-29 13:54:14
Output for 5.6.7
2016-05-25 00:56:50
Output for 5.5.35
2016-05-22 04:09:47
Output for 5.5.34
2016-04-10 20:08:54
Output for 5.5.33
2016-03-08 15:24:10
Output for 5.5.32
2016-03-16 21:06:37
Output for 5.5.31
2016-03-20 12:05:10
Output for 5.5.30
2016-03-31 22:37:38
Output for 5.5.29
2016-04-16 17:10:12
Output for 5.5.28
2016-04-20 19:29:36
Output for 5.5.27
2016-04-21 21:59:26
Output for 5.5.26
2016-04-26 03:27:59
Output for 5.5.25
2016-04-28 09:35:47
Output for 5.5.24
2016-04-30 17:04:59
Output for 5.4.38 - 5.4.45
2015-10-24 03:27:30
Output for 5.4.26 - 5.4.37
2015-10-24 03:27:31
Output for 5.4.15 - 5.4.25
2015-10-24 03:27:32
Output for 5.4.4 - 5.4.14
2015-10-24 03:27:33
Output for 5.4.0 - 5.4.3
2015-10-24 03:27:34
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/Jn0Ib on line 2
Process exited with code 255.