3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('+24 hours'))->format('Y-m-d H:i:s');
based on MXoDv
Output for 5.6.28, 7.0.20 - 7.2.0
2016-01-19 14:47:08
Output for 7.0.6
2016-05-22 13:57:40
Output for 7.0.5
2016-04-04 09:53:53
Output for 7.0.4
2016-03-11 22:01:27
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:14
Output for 7.0.0
2016-03-28 10:39:10
Output for 5.6.21
2016-05-03 16:48:24
Output for 5.6.20
2016-04-11 08:56:14
Output for 5.6.19
2016-03-09 06:11:32
Output for 5.6.18
2016-03-16 15:10:17
Output for 5.6.17
2016-03-21 02:42:18
Output for 5.6.16
2016-03-29 11:29:02
Output for 5.6.15
2016-03-30 12:18:39
Output for 5.6.14
2016-04-15 18:01:01
Output for 5.6.13
2016-04-16 18:39:59
Output for 5.6.12
2016-04-21 09:10:26
Output for 5.6.11
2016-04-25 15:36:24
Output for 5.6.10
2016-04-26 17:42:08
Output for 5.6.9
2016-04-28 23:10:15
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:10
Output for 5.5.30
2016-04-02 14:09:58
Output for 5.5.29
2016-04-18 08:57:55
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:11
Output for 5.5.24
2016-05-25 10:21:55
Output for 5.4.45
2016-01-19 14:47:11
Output for 5.4.44
2016-01-19 14:47:12
Output for 5.4.41 - 5.4.43
2016-01-19 14:47:13
Output for 5.4.40
2016-01-19 14:47:14
Output for 5.4.39
2016-01-19 14:47:15
Output for 5.4.37 - 5.4.38
2016-01-19 14:47:16
Output for 5.4.35 - 5.4.36
2016-01-19 14:47:17
Output for 5.4.34
2016-01-19 14:47:18
Output for 5.4.31 - 5.4.32
2016-01-19 14:47:19
Output for 5.4.27 - 5.4.30
2016-01-19 14:47:20
Output for 5.4.23 - 5.4.26
2016-01-19 14:47:21
Output for 5.4.21 - 5.4.22
2016-01-19 14:47:22
Output for 5.4.19 - 5.4.20
2016-01-19 14:47:23
Output for 5.4.17 - 5.4.18
2016-01-19 14:47:24
Output for 5.4.15 - 5.4.16
2016-01-19 14:47:25
Output for 5.4.12 - 5.4.14
2016-01-19 14:47:26
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/vgY0B on line 3
Process exited with code 255.