3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime; var_dump("{$d->format('c')}");
Output for 5.6.28, 7.0.14 - 7.1.0
string(25) "2014-09-15T14:30:57+02:00"
Output for 7.0.6
string(25) "2016-05-03T16:55:45+02:00"
Output for 7.0.5
string(25) "2016-04-03T05:25:23+02:00"
Output for 7.0.4
string(25) "2016-03-10T17:05:11+01:00"
Output for 7.0.3
string(25) "2016-03-18T17:49:13+01:00"
Output for 7.0.2
string(25) "2016-03-22T23:55:38+01:00"
Output for 7.0.1
string(25) "2016-03-24T04:05:04+01:00"
Output for 7.0.0
string(25) "2016-03-27T06:01:54+02:00"
Output for hhvm-3.12.0
string(25) "2016-03-13T02:56:23+01:00"
Output for hhvm-3.10.0
string(25) "2016-03-30T23:09:38+02:00"
Output for 5.6.21
string(25) "2016-05-02T12:06:06+02:00"
Output for 5.6.20
string(25) "2016-04-10T04:23:58+02:00"
Output for 5.6.19
string(25) "2016-03-08T01:11:05+01:00"
Output for 5.6.18
string(25) "2016-03-15T09:43:12+01:00"
Output for 5.6.17
string(25) "2016-03-19T21:36:56+01:00"
Output for 5.6.16
string(25) "2016-03-28T06:49:31+02:00"
Output for 5.6.15
string(25) "2016-03-29T07:40:25+02:00"
Output for 5.6.14
string(25) "2016-04-02T09:36:19+02:00"
Output for 5.6.13
string(25) "2016-04-15T13:54:11+02:00"
Output for 5.6.12
string(25) "2016-04-20T04:20:44+02:00"
Output for 5.6.11
string(25) "2016-04-23T10:51:00+02:00"
Output for 5.6.10
string(25) "2016-04-25T12:46:46+02:00"
Output for 5.6.9
string(25) "2016-04-27T17:55:34+02:00"
Output for 5.6.8
string(25) "2016-04-30T02:39:32+02:00"
Output for 5.5.35
string(25) "2016-05-22T17:49:47+02:00"
Output for 5.5.34
string(25) "2016-04-11T06:37:41+02:00"
Output for 5.5.33
string(25) "2016-03-09T03:51:52+01:00"
Output for 5.5.32
string(25) "2016-03-17T13:26:35+01:00"
Output for 5.5.31
string(25) "2016-03-21T00:29:22+01:00"
Output for 5.5.30
string(25) "2016-04-01T09:33:45+02:00"
Output for 5.5.29
string(25) "2016-04-17T04:18:54+02:00"
Output for 5.5.28
string(25) "2016-04-21T07:31:39+02:00"
Output for 5.5.27
string(25) "2016-04-22T09:26:17+02:00"
Output for 5.5.26
string(25) "2016-04-26T15:28:03+02:00"
Output for 5.5.25
string(25) "2016-04-28T22:18:49+02:00"
Output for 5.5.24
string(25) "2016-05-24T05:00:19+02:00"
Output for 5.4.45
string(25) "2015-09-18T16:45:55+02:00"
Output for 5.4.44
string(25) "2015-08-22T05:09:57+02:00"
Output for 5.4.43
string(25) "2015-08-22T05:09:54+02:00"
Output for 5.4.42
string(25) "2015-08-22T05:09:52+02:00"
Output for 5.4.41
string(25) "2015-08-22T05:09:50+02:00"
Output for 5.4.39 - 5.4.40
string(25) "2015-08-22T05:09:45+02:00"
Output for 5.4.38
string(25) "2015-03-14T18:19:24+01:00"
Output for 5.4.37
string(25) "2015-03-14T18:19:18+01:00"
Output for 5.4.35 - 5.4.36
string(25) "2015-03-14T18:19:17+01:00"
Output for 5.4.34
string(25) "2015-03-14T18:19:16+01:00"
Output for 5.4.27 - 5.4.32
string(25) "2014-09-15T14:31:01+02:00"
Output for 5.4.5 - 5.4.26
string(25) "2014-09-15T14:31:02+02:00"
Output for 5.3.14 - 5.4.4
string(25) "2014-09-15T14:31:03+02:00"
Output for 5.2.10 - 5.3.13
string(25) "2014-09-15T14:31:04+02:00"
Output for 5.2.0 - 5.2.9
string(25) "2014-09-15T14:31:05+02:00"
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/3tPSZ on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '(', expecting '}' in /in/3tPSZ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '(', expecting '}' in /in/3tPSZ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'}'' in /in/3tPSZ on line 3
Process exited with code 255.