3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$today = date("Y-m-d\TH:i:s\Z", 1333699439); //echo $today; //echo date("Ymd\THis\Z", time()); $objDateTime = new DateTime('NOW'); $isoDate = $objDateTime->format(DateTime::ISO8601); echo $isoDate;
based on p4Prm
Output for 5.6.28, 7.0.20 - 7.2.0
2015-11-12T15:46:39+0100
Output for 7.0.6
2016-05-03T18:44:34+0200
Output for 7.0.5
2016-04-03T07:09:14+0200
Output for 7.0.4
2016-03-10T18:56:52+0100
Output for 7.0.3
2016-03-18T20:09:15+0100
Output for 7.0.2
2016-03-23T02:16:03+0100
Output for 7.0.1
2016-03-24T05:51:54+0100
Output for 7.0.0
2016-03-27T07:47:50+0200
Output for 5.6.21
2016-05-02T13:53:24+0200
Output for 5.6.20
2016-04-10T06:08:31+0200
Output for 5.6.19
2016-03-08T03:08:56+0100
Output for 5.6.18
2016-03-15T11:53:21+0100
Output for 5.6.17
2016-03-19T23:31:42+0100
Output for 5.6.16
2016-03-28T08:35:02+0200
Output for 5.6.15
2016-03-29T09:25:46+0200
Output for 5.6.14
2016-04-02T11:16:03+0200
Output for 5.6.13
2016-04-15T15:42:30+0200
Output for 5.6.12
2016-04-20T06:11:07+0200
Output for 5.6.11
2016-04-24T12:34:17+0200
Output for 5.6.10
2016-04-25T14:36:33+0200
Output for 5.6.9
2016-04-27T19:46:22+0200
Output for 5.6.8
2016-04-30T04:38:13+0200
Output for 5.5.35
2016-05-22T21:32:59+0200
Output for 5.5.34
2016-04-11T08:20:07+0200
Output for 5.5.33
2016-03-09T05:53:53+0100
Output for 5.5.32
2016-03-17T15:48:01+0100
Output for 5.5.31
2016-03-21T02:34:29+0100
Output for 5.5.30
2016-04-01T11:19:27+0200
Output for 5.5.29
2016-04-17T06:04:44+0200
Output for 5.5.28
2016-04-21T09:25:24+0200
Output for 5.5.27
2016-04-22T11:11:13+0200
Output for 5.5.26
2016-04-26T17:19:35+0200
Output for 5.5.25
2016-04-29T00:15:33+0200
Output for 5.5.24
2016-05-24T06:44:18+0200
Output for 5.4.45
2015-11-12T15:46:41+0100
Output for 5.4.44
2015-11-12T15:46:42+0100
Output for 5.4.43
2015-11-12T15:46:43+0100
Output for 5.4.41 - 5.4.42
2015-11-12T15:46:44+0100
Output for 5.4.39 - 5.4.40
2015-11-12T15:46:45+0100
Output for 5.4.36 - 5.4.38
2015-11-12T15:46:46+0100
Output for 5.4.34 - 5.4.35
2015-11-12T15:46:47+0100
Output for 5.3.29, 5.4.31 - 5.4.32
2015-11-12T15:46:48+0100
Output for 5.4.26 - 5.4.30
2015-11-12T15:46:49+0100
Output for 5.3.28, 5.4.23 - 5.4.25
2015-11-12T15:46:50+0100
Output for 5.4.19 - 5.4.22
2015-11-12T15:46:51+0100
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.18
2015-11-12T15:46:52+0100
Output for 5.3.21 - 5.3.25, 5.4.12 - 5.4.15
2015-11-12T15:46:53+0100
Output for 5.3.19 - 5.3.20, 5.4.9 - 5.4.11
2015-11-12T15:46:54+0100