3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date_create('now', new DateTimeZone('America/Los_Angeles'))->format(DateTime::ISO8601);
Output for 5.6.28, 7.0.14 - 7.1.0
2014-08-12T09:36:21-0700
Output for 7.0.6
2016-05-03T07:53:37-0700
Output for 7.0.5
2016-04-02T20:23:18-0700
Output for 7.0.4
2016-03-10T08:01:12-0800
Output for 7.0.3
2016-03-18T09:46:47-0700
Output for 7.0.2
2016-03-22T15:53:14-0700
Output for 7.0.1
2016-03-23T20:02:52-0700
Output for 7.0.0
2016-03-26T20:59:40-0700
Output for hhvm-3.12.0
2016-03-12T17:52:25-0800
Output for hhvm-3.10.0
2016-03-30T14:06:26-0700
Output for 5.6.21
2016-05-02T03:03:58-0700
Output for 5.6.20
2016-04-09T19:21:56-0700
Output for 5.6.19
2016-03-07T16:08:40-0800
Output for 5.6.18
2016-03-15T01:40:49-0700
Output for 5.6.17
2016-03-19T13:34:39-0700
Output for 5.6.16
2016-03-27T21:47:28-0700
Output for 5.6.15
2016-03-28T22:38:20-0700
Output for 5.6.14
2016-04-02T00:34:21-0700
Output for 5.6.13
2016-04-15T04:52:02-0700
Output for 5.6.12
2016-04-19T19:18:40-0700
Output for 5.6.11
2016-04-23T01:48:50-0700
Output for 5.6.10
2016-04-25T03:44:33-0700
Output for 5.6.9
2016-04-27T08:53:15-0700
Output for 5.6.8
2016-04-29T17:37:09-0700
Output for 5.5.35
2016-05-22T08:47:14-0700
Output for 5.5.34
2016-04-10T21:35:37-0700
Output for 5.5.33
2016-03-08T18:49:39-0800
Output for 5.5.32
2016-03-17T05:24:27-0700
Output for 5.5.31
2016-03-20T16:27:01-0700
Output for 5.5.30
2016-04-01T00:31:42-0700
Output for 5.5.29
2016-04-16T19:16:52-0700
Output for 5.5.28
2016-04-20T22:29:37-0700
Output for 5.5.27
2016-04-22T00:24:10-0700
Output for 5.5.26
2016-04-26T06:25:56-0700
Output for 5.5.25
2016-04-28T13:16:43-0700
Output for 5.5.24
2016-05-23T19:58:32-0700
Output for 5.4.45
2015-09-18T07:00:17-0700
Output for 5.4.44
2015-08-21T18:01:39-0700
Output for 5.4.43
2015-08-21T18:01:35-0700
Output for 5.4.42
2015-06-21T07:08:38-0700
Output for 5.4.41
2015-06-21T07:08:35-0700
Output for 5.4.39 - 5.4.40
2015-06-21T07:08:30-0700
Output for 5.4.38
2015-03-13T11:58:32-0700
Output for 5.4.36 - 5.4.37
2015-03-13T11:58:23-0700
Output for 5.4.34 - 5.4.35
2015-03-13T11:58:22-0700
Output for 5.4.32
2014-08-28T03:56:07-0700
Output for 5.4.17 - 5.4.31
2014-08-12T09:36:25-0700
Output for 5.3.25 - 5.3.28, 5.4.0 - 5.4.16
2014-08-12T09:36:26-0700
Output for 5.3.29
2014-08-28T03:56:06-0700
Output for 5.3.4 - 5.3.24
2014-08-12T09:36:27-0700
Output for 5.2.0 - 5.3.3
2014-08-12T09:36:28-0700
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/LNmdJ on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/LNmdJ on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/LNmdJ on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/LNmdJ on line 1
Process exited with code 255.