3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime = new DateTime($result['date']); echo $datetime->format('Y-m-d\TH:i:sP'); ?>
based on Riaf4
Output for 5.6.28, 7.0.20 - 7.2.0
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:45+01:00
Output for 7.0.6
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-05-21T18:21:02+02:00
Output for 7.0.5
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-14T15:38:08+02:00
Output for 7.0.4
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-10T22:18:08+01:00
Output for 7.0.3
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-18T23:54:19+01:00
Output for 7.0.2
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-23T06:01:21+01:00
Output for 7.0.1
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-24T09:03:51+01:00
Output for 7.0.0
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-27T13:10:45+02:00
Output for 5.6.21
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-05-02T20:37:18+02:00
Output for 5.6.20
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-10T12:37:52+02:00
Output for 5.6.19
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-08T06:28:15+01:00
Output for 5.6.18
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-15T15:28:24+01:00
Output for 5.6.17
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-20T03:00:47+01:00
Output for 5.6.16
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-28T14:03:06+02:00
Output for 5.6.15
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-29T14:51:25+02:00
Output for 5.6.14
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-14T20:32:51+02:00
Output for 5.6.13
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-15T21:19:12+02:00
Output for 5.6.12
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-20T12:20:23+02:00
Output for 5.6.11
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-24T18:16:25+02:00
Output for 5.6.10
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-25T20:23:42+02:00
Output for 5.6.9
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-28T02:20:46+02:00
Output for 5.6.8
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-30T10:11:09+02:00
Output for 5.5.35
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-05-23T09:19:24+02:00
Output for 5.5.34
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-11T14:53:18+02:00
Output for 5.5.33
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-09T09:33:32+01:00
Output for 5.5.32
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-17T19:28:27+01:00
Output for 5.5.31
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-03-21T06:15:51+01:00
Output for 5.5.30
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-01T16:40:37+02:00
Output for 5.5.29
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-17T11:29:40+02:00
Output for 5.5.28
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-21T15:10:43+02:00
Output for 5.5.27
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-22T16:42:29+02:00
Output for 5.5.26
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-26T23:05:44+02:00
Output for 5.5.25
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-04-29T06:39:34+02:00
Output for 5.5.24
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-05-24T13:45:56+02:00
Output for 5.4.45
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:49+01:00
Output for 5.4.44
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:50+01:00
Output for 5.4.41 - 5.4.43
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:51+01:00
Output for 5.4.40
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:52+01:00
Output for 5.4.38 - 5.4.39
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:53+01:00
Output for 5.4.36 - 5.4.37
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:54+01:00
Output for 5.4.34 - 5.4.35
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:55+01:00
Output for 5.3.29, 5.4.31 - 5.4.32
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:56+01:00
Output for 5.4.27 - 5.4.30
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:57+01:00
Output for 5.4.24 - 5.4.26
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:58+01:00
Output for 5.3.28, 5.4.22 - 5.4.23
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:13:59+01:00
Output for 5.4.19 - 5.4.21
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:14:00+01:00
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.18
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:14:01+01:00
Output for 5.3.24 - 5.3.25, 5.4.13 - 5.4.16
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:14:02+01:00
Output for 5.3.22 - 5.3.23, 5.4.12
Notice: Undefined variable: result in /in/F44Ye on line 4 2016-01-25T07:14:03+01:00