3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new \DateTime(); echo $x->format('c');
Output for 5.6.28, 7.0.14 - 7.1.0
2014-02-18T04:23:34+01:00
Output for 7.0.6
2016-05-03T05:22:18+02:00
Output for 7.0.5
2016-04-02T18:29:27+02:00
Output for 7.0.4
2016-03-10T04:22:56+01:00
Output for 7.0.3
2016-03-18T04:42:58+01:00
Output for 7.0.2
2016-03-21T15:10:52+01:00
Output for 7.0.1
2016-03-23T15:47:51+01:00
Output for 7.0.0
2016-03-26T17:36:40+01:00
Output for hhvm-3.12.0
2016-03-11T11:32:39+01:00
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
2016-05-02T00:26:27+02:00
Output for 5.6.20
2016-04-09T13:44:19+02:00
Output for 5.6.19
2016-03-07T04:06:04+01:00
Output for 5.6.18
2016-03-14T17:23:35+01:00
Output for 5.6.17
2016-03-19T09:07:32+01:00
Output for 5.6.16
2016-03-27T19:22:46+02:00
Output for 5.6.15
2016-03-28T20:15:44+02:00
Output for 5.6.14
2016-04-01T22:46:56+02:00
Output for 5.6.13
2016-04-15T02:47:13+02:00
Output for 5.6.12
2016-04-19T16:09:10+02:00
Output for 5.6.11
2016-04-22T23:11:53+02:00
Output for 5.6.10
2016-04-25T00:50:47+02:00
Output for 5.6.9
2016-04-27T06:03:36+02:00
Output for 5.6.8
2016-04-29T13:54:04+02:00
Output for 5.6.7
2016-05-25T02:59:30+02:00
Output for 5.5.35
2016-05-22T04:14:07+02:00
Output for 5.5.34
2016-04-10T19:42:18+02:00
Output for 5.5.33
2016-03-08T15:19:01+01:00
Output for 5.5.32
2016-03-16T21:09:05+01:00
Output for 5.5.31
2016-03-20T11:58:19+01:00
Output for 5.5.30
2016-03-31T22:17:04+02:00
Output for 5.5.29
2016-04-16T16:52:13+02:00
Output for 5.5.28
2016-04-20T19:17:16+02:00
Output for 5.5.27
2016-04-21T21:37:14+02:00
Output for 5.5.26
2016-04-26T03:26:30+02:00
Output for 5.5.25
2016-04-28T09:23:27+02:00
Output for 5.5.24
2016-05-23T16:16:57+02:00
Output for 5.4.45
2015-09-13T22:31:47+02:00
Output for 5.4.44
2015-09-13T22:31:44+02:00
Output for 5.4.43
2015-09-13T22:31:40+02:00
Output for 5.4.42
2015-09-13T22:31:39+02:00
Output for 5.4.41
2015-09-13T22:31:37+02:00
Output for 5.4.40
2015-05-08T09:47:03+02:00
Output for 5.4.39
2015-05-08T09:47:02+02:00
Output for 5.4.38
2015-03-02T08:55:19+01:00
Output for 5.4.36 - 5.4.37
2015-02-08T03:44:05+01:00
Output for 5.4.34 - 5.4.35
2014-12-04T19:31:30+01:00
Output for 5.4.32
2014-09-06T12:54:40+02:00
Output for 5.4.31
2014-09-06T12:54:34+02:00
Output for 5.4.29 - 5.4.30
2014-09-06T12:54:29+02:00
Output for 5.4.28
2014-09-06T12:54:28+02:00
Output for 5.4.26 - 5.4.27
2014-09-06T12:54:36+02:00
Output for 5.4.14 - 5.4.25
2014-02-18T04:23:35+01:00
Output for 5.3.22 - 5.3.28, 5.4.0 - 5.4.13
2014-02-18T04:23:36+01:00
Output for 5.3.29
2014-09-06T12:54:30+02:00
Output for 5.3.1 - 5.3.21
2014-02-18T04:23:37+01:00
Output for 5.3.0
2014-02-18T04:23:38+01:00
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/2oone on line 2 2014-02-18T04:23:38+01:00
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/2oone on line 2 Fatal error: Class 'DateTime' not found in /in/2oone on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/2oone on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/2oone on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/2oone on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/2oone on line 2