3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new \DateTime('now'))->format(\DateTime::RFC3339);
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.5, 7.4.7 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
2014-08-28T20:51:39+02:00
Output for 7.3.32 - 7.3.33, 8.0.13
2014-08-28T18:51:39+00:00
Output for 7.4.6
2014-08-28T20:51:40+02:00
Output for 7.0.6
2016-05-03T03:24:14+02:00
Output for 7.0.5
2016-04-02T16:37:29+02:00
Output for 7.0.4
2016-03-10T02:16:12+01:00
Output for 7.0.3
2016-03-18T02:28:33+01:00
Output for 7.0.2
2016-03-21T13:01:31+01:00
Output for 7.0.1
2016-03-23T13:14:58+01:00
Output for 7.0.0
2016-03-26T15:38:27+01:00
Output for 5.6.21
2016-05-01T22:27:04+02:00
Output for 5.6.20
2016-04-09T11:50:31+02:00
Output for 5.6.19
2016-03-07T00:58:34+01:00
Output for 5.6.18
2016-03-14T12:53:57+01:00
Output for 5.6.17
2016-03-19T06:57:04+01:00
Output for 5.6.16
2016-03-27T17:23:48+02:00
Output for 5.6.15
2016-03-28T18:16:26+02:00
Output for 5.6.14
2016-04-01T20:52:19+02:00
Output for 5.6.13
2016-04-15T00:49:34+02:00
Output for 5.6.12
2016-04-19T13:53:47+02:00
Output for 5.6.11
2016-04-22T21:10:42+02:00
Output for 5.6.10
2016-04-24T22:48:57+02:00
Output for 5.6.9
2016-04-27T04:00:55+02:00
Output for 5.6.8
2016-04-29T11:43:52+02:00
Output for 5.6.7
2016-05-24T23:04:33+02:00
Output for 5.5.35
2016-05-22T01:51:09+02:00
Output for 5.5.34
2016-04-10T17:47:37+02:00
Output for 5.5.33
2016-03-08T13:08:14+01:00
Output for 5.5.32
2016-03-16T18:51:08+01:00
Output for 5.5.31
2016-03-20T09:49:03+01:00
Output for 5.5.30
2016-03-31T20:18:01+02:00
Output for 5.5.29
2016-04-16T14:50:15+02:00
Output for 5.5.28
2016-04-20T17:11:44+02:00
Output for 5.5.27
2016-04-21T19:39:30+02:00
Output for 5.5.26
2016-04-26T01:18:04+02:00
Output for 5.5.25
2016-04-28T07:18:42+02:00
Output for 5.5.24
2016-04-30T14:43:38+02:00
Output for 5.4.45
2015-09-09T20:45:53+02:00
Output for 5.4.44
2015-08-09T22:26:01+02:00
Output for 5.4.43
2015-08-09T22:25:56+02:00
Output for 5.4.42
2015-08-09T22:25:54+02:00
Output for 5.4.41
2015-06-07T11:41:53+02:00
Output for 5.4.39 - 5.4.40
2015-05-14T01:33:51+02:00
Output for 5.4.38
2015-02-27T20:45:14+01:00
Output for 5.4.37
2015-02-03T19:50:50+01:00
Output for 5.4.36
2015-02-03T19:50:49+01:00
Output for 5.4.35
2014-11-14T12:32:50+01:00
Output for 5.4.34
2014-11-13T17:07:20+01:00
Output for 5.4.13 - 5.4.32
2014-08-28T20:51:43+02:00
Output for 5.4.0 - 5.4.12
2014-08-28T20:51:44+02:00
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/9vRLC on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/9vRLC on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/9vRLC on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/9vRLC on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/9vRLC on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/9vRLC on line 2 Parse error: parse error, expecting `','' or `';'' in /in/9vRLC on line 2
Process exited with code 255.

preferences:
211.9 ms | 401 KiB | 329 Q