3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('-1 hour'); echo $a->format('c');
Output for 5.6.28, 7.0.14 - 7.1.0
2014-08-21T15:37:43+02:00
Output for 7.0.6
2016-05-21T18:37:53+02:00
Output for 7.0.5
2016-04-02T21:43:55+02:00
Output for 7.0.4
2016-03-10T08:17:21+01:00
Output for 7.0.3
2016-03-18T08:55:10+01:00
Output for 7.0.2
2016-03-22T14:48:44+01:00
Output for 7.0.1
2016-03-23T19:32:52+01:00
Output for 7.0.0
2016-03-26T21:05:37+01:00
Output for hhvm-3.12.0
2016-03-12T11:05:03+01:00
Output for hhvm-3.10.0
2016-03-30T10:27:38+02:00
Output for 5.6.21
2016-05-02T20:34:16+02:00
Output for 5.6.20
2016-04-10T12:23:15+02:00
Output for 5.6.19
2016-03-07T16:25:09+01:00
Output for 5.6.18
2016-03-15T00:22:04+01:00
Output for 5.6.17
2016-03-19T13:10:06+01:00
Output for 5.6.16
2016-03-27T22:50:43+02:00
Output for 5.6.15
2016-03-28T23:55:59+02:00
Output for 5.6.14
2016-04-02T02:16:48+02:00
Output for 5.6.13
2016-04-15T20:46:45+02:00
Output for 5.6.12
2016-04-20T11:49:06+02:00
Output for 5.6.11
2016-04-24T17:43:35+02:00
Output for 5.6.10
2016-04-25T19:51:51+02:00
Output for 5.6.9
2016-04-28T01:50:21+02:00
Output for 5.6.8
2016-04-30T09:36:44+02:00
Output for 5.5.35
2016-05-23T09:57:39+02:00
Output for 5.5.34
2016-04-11T14:40:08+02:00
Output for 5.5.33
2016-03-08T19:22:19+01:00
Output for 5.5.32
2016-03-17T02:03:13+01:00
Output for 5.5.31
2016-03-20T15:55:55+01:00
Output for 5.5.30
2016-04-01T01:51:50+02:00
Output for 5.5.29
2016-04-17T10:56:34+02:00
Output for 5.5.28
2016-04-21T14:38:09+02:00
Output for 5.5.27
2016-04-22T16:09:20+02:00
Output for 5.5.26
2016-04-26T22:33:28+02:00
Output for 5.5.25
2016-04-29T06:08:23+02:00
Output for 5.5.24
2016-05-24T13:15:20+02:00
Output for 5.4.45
2015-09-21T11:42:05+02:00
Output for 5.4.44
2015-09-21T11:41:59+02:00
Output for 5.4.43
2015-09-21T11:41:54+02:00
Output for 5.4.42
2015-09-21T11:41:51+02:00
Output for 5.4.41
2015-09-21T11:41:47+02:00
Output for 5.4.40
2015-09-21T11:41:43+02:00
Output for 5.4.39
2015-09-21T11:41:39+02:00
Output for 5.4.38
2015-03-13T21:54:41+01:00
Output for 5.4.37
2015-03-13T21:54:34+01:00
Output for 5.4.34 - 5.4.36
2015-03-13T21:54:33+01:00
Output for 5.3.29, 5.4.32
2014-08-28T12:11:50+02:00
Output for 5.4.20 - 5.4.31
2014-08-21T15:37:47+02:00
Output for 5.3.27 - 5.3.28, 5.4.0 - 5.4.19
2014-08-21T15:37:48+02:00
Output for 5.3.6 - 5.3.26
2014-08-21T15:37:49+02:00
Output for 5.2.0 - 5.3.5
2014-08-21T15:37:50+02:00
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/YsfmI on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/YsfmI on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/YsfmI on line 2