3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = new DateTime($result['date']); echo $datetime->format('Y-m-d\TH:i:sP'); ?> echo $datetime->format('Y-m-d\TH:i:sP');
Output for 8.3.0 - 8.3.6
Warning: Undefined variable $result in /in/Riaf4 on line 4 Warning: Trying to access array offset on null in /in/Riaf4 on line 4 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/Riaf4 on line 4 2016-01-25T07:13:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: Undefined variable $result in /in/Riaf4 on line 4 Warning: Trying to access array offset on value of type null in /in/Riaf4 on line 4 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/Riaf4 on line 4 2016-01-25T07:13:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Warning: Undefined variable $result in /in/Riaf4 on line 4 Warning: Trying to access array offset on value of type null in /in/Riaf4 on line 4 2016-01-25T07:13:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 8.0.13
Warning: Undefined variable $result in /in/Riaf4 on line 4 Warning: Trying to access array offset on value of type null in /in/Riaf4 on line 4 2016-01-25T06:13:31+00:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.4.0 - 7.4.33
Notice: Undefined variable: result in /in/Riaf4 on line 4 Notice: Trying to access array offset on value of type null in /in/Riaf4 on line 4 2016-01-25T07:13:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.3.32 - 7.3.33
2016-01-25T06:13:31+00:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-01-25T07:13:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.6
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-05-21T14:17:22+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.5
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-03T10:10:27+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.4
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-10T22:18:07+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.3
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-18T23:54:18+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.2
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-23T06:01:21+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.1
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-24T09:03:50+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 7.0.0
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-27T10:55:05+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.21
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-05-02T17:05:18+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.20
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-10T09:12:24+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.19
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-08T06:28:14+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.18
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-15T15:28:23+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.17
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-20T03:00:46+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.16
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-28T11:44:58+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.15
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-29T12:34:48+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.14
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-14T18:17:45+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.13
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-15T18:56:52+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.12
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-20T09:27:49+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.11
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-24T15:53:44+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.10
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-25T17:58:59+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.9
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-27T23:28:06+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.6.8
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-30T07:54:14+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.35
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-05-23T03:19:10+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.34
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-11T11:26:56+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.33
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-09T09:33:31+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.32
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-17T19:28:26+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.31
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-03-21T06:15:50+01:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.30
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-01T14:25:47+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.29
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-17T09:14:06+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.28
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-21T12:47:49+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.27
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-22T14:24:13+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.26
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-26T20:41:15+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.25
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-04-29T04:08:57+02:00 echo $datetime->format('Y-m-d\TH:i:sP');
Output for 5.5.24
Notice: Undefined variable: result in /in/Riaf4 on line 4 2016-05-24T10:39:29+02:00 echo $datetime->format('Y-m-d\TH:i:sP');

preferences:
158.53 ms | 401 KiB | 183 Q