3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date_create_from_format( 'U.u', sprintf('%.f', microtime(true)) )->format('Y-m-d\TH:i:s.uO'); var_dump($date);
Output for 7.1.0
string(31) "2014-07-10T13:40:30.005009+0000"
Output for 7.0.14
string(31) "2014-07-10T13:40:30.003765+0000"
Output for 7.0.6
string(31) "2016-05-03T05:30:52.392536+0000"
Output for 7.0.5
string(31) "2016-04-02T18:29:50.038125+0000"
Output for 7.0.4
string(31) "2016-03-10T05:42:15.107678+0000"
Output for 7.0.3
string(31) "2016-03-18T06:12:05.384939+0000"
Output for 7.0.2
string(31) "2016-03-22T11:44:41.236022+0000"
Output for 7.0.1
string(31) "2016-03-23T17:02:49.450099+0000"
Output for 7.0.0
string(31) "2016-03-26T18:44:04.222938+0000"
Output for 5.6.28
string(31) "2014-07-10T13:40:30.004385+0000"
Output for 5.6.21
string(31) "2016-05-02T00:48:45.178773+0000"
Output for 5.6.20
string(31) "2016-04-09T14:59:59.240398+0000"
Output for 5.6.19
string(31) "2016-03-07T07:52:10.544553+0000"
Output for 5.6.18
string(31) "2016-03-14T20:48:19.724833+0000"
Output for 5.6.17
string(31) "2016-03-19T10:31:16.045680+0000"
Output for 5.6.16
string(31) "2016-03-27T19:29:01.760088+0000"
Output for 5.6.15
string(31) "2016-03-28T20:22:53.029180+0000"
Output for 5.6.14
string(31) "2016-04-01T22:50:25.333633+0000"
Output for 5.6.13
string(31) "2016-04-15T02:52:57.146093+0000"
Output for 5.6.12
string(31) "2016-04-19T16:26:52.143062+0000"
Output for 5.6.11
string(31) "2016-04-22T23:25:08.131643+0000"
Output for 5.6.10
string(31) "2016-04-25T01:17:32.548242+0000"
Output for 5.6.9
string(31) "2016-04-27T06:14:52.356156+0000"
Output for 5.6.8
string(31) "2016-04-29T14:12:07.519596+0000"
Output for 5.6.7
string(31) "2016-05-25T07:20:06.524586+0000"
Output for 5.5.35
string(31) "2016-05-22T04:26:37.342870+0000"
Output for 5.5.34
string(31) "2016-04-10T19:44:15.679074+0000"
Output for 5.5.33
string(31) "2016-03-08T16:36:34.600031+0000"
Output for 5.5.32
string(31) "2016-03-16T22:54:55.984137+0000"
Output for 5.5.31
string(31) "2016-03-20T13:19:19.072876+0000"
Output for 5.5.30
string(31) "2016-03-31T22:23:47.718316+0000"
Output for 5.5.29
string(31) "2016-04-16T16:57:53.580050+0000"
Output for 5.5.28
string(31) "2016-04-20T19:32:18.011408+0000"
Output for 5.5.27
string(31) "2016-04-21T21:56:52.890134+0000"
Output for 5.5.26
string(31) "2016-04-26T03:42:57.295488+0000"
Output for 5.5.25
string(31) "2016-04-28T09:45:43.178331+0000"
Output for 5.5.24
string(31) "2016-05-23T16:41:54.696042+0000"
Output for 5.4.45
string(31) "2015-09-20T22:41:33.510300+0000"
Output for 5.4.44
string(31) "2015-09-20T22:40:48.512576+0000"
Output for 5.4.43
string(31) "2015-09-20T22:39:52.608042+0000"
Output for 5.4.42
string(31) "2015-09-20T22:39:30.729223+0000"
Output for 5.4.41
string(31) "2015-09-20T22:38:59.948446+0000"
Output for 5.4.40
string(31) "2015-09-20T22:38:30.629506+0000"
Output for 5.4.39
string(31) "2015-09-20T22:38:06.214812+0000"
Output for 5.4.38
string(31) "2015-03-04T18:16:01.649842+0000"
Output for 5.4.37
string(31) "2015-03-04T18:15:55.129980+0000"
Output for 5.4.36
string(31) "2015-03-04T18:15:54.783780+0000"
Output for 5.4.35
string(31) "2015-03-04T18:15:54.419967+0000"
Output for 5.4.34
string(31) "2015-03-04T18:15:54.077842+0000"
Output for 5.4.32
string(31) "2014-09-13T15:43:59.801556+0000"
Output for 5.4.31
string(31) "2014-09-13T15:43:59.112916+0000"
Output for 5.4.30
string(31) "2014-07-10T13:40:33.998264+0000"
Output for 5.4.29
string(31) "2014-07-10T13:40:34.047544+0000"
Output for 5.4.28
string(31) "2014-07-10T13:40:34.097722+0000"
Output for 5.4.27
string(31) "2014-07-10T13:40:34.147119+0000"
Output for 5.4.26
string(31) "2014-07-10T13:40:34.195145+0000"
Output for 5.4.25
string(31) "2014-07-10T13:40:34.242072+0000"
Output for 5.4.24
string(31) "2014-07-10T13:40:34.290050+0000"
Output for 5.4.23
string(31) "2014-07-10T13:40:34.337471+0000"
Output for 5.4.22
string(31) "2014-07-10T13:40:34.386276+0000"
Output for 5.4.21
string(31) "2014-07-10T13:40:34.429151+0000"
Output for 5.4.20
string(31) "2014-07-10T13:40:34.474842+0000"
Output for 5.4.19
string(31) "2014-07-10T13:40:34.526476+0000"
Output for 5.4.18
string(31) "2014-07-10T13:40:34.571145+0000"
Output for 5.4.17
string(31) "2014-07-10T13:40:34.615518+0000"
Output for 5.4.16
string(31) "2014-07-10T13:40:34.660862+0000"
Output for 5.4.15
string(31) "2014-07-10T13:40:34.707301+0000"
Output for 5.4.14
string(31) "2014-07-10T13:40:34.763627+0000"
Output for 5.4.13
string(31) "2014-07-10T13:40:34.808459+0000"
Output for 5.4.12
string(31) "2014-07-10T13:40:34.852656+0000"
Output for 5.4.11
string(31) "2014-07-10T13:40:34.896510+0000"
Output for 5.4.10
string(31) "2014-07-10T13:40:34.942014+0000"
Output for 5.4.9
string(31) "2014-07-10T13:40:34.986677+0000"
Output for 5.4.8
string(31) "2014-07-10T13:40:35.031232+0000"
Output for 5.4.7
string(31) "2014-07-10T13:40:35.074130+0000"
Output for 5.4.6
string(31) "2014-07-10T13:40:35.122742+0000"
Output for 5.4.5
string(31) "2014-07-10T13:40:35.175301+0000"
Output for 5.4.4
string(31) "2014-07-10T13:40:35.218081+0000"
Output for 5.4.3
string(31) "2014-07-10T13:40:35.269345+0000"
Output for 5.4.2
string(31) "2014-07-10T13:40:35.313190+0000"
Output for 5.4.1
string(31) "2014-07-10T13:40:35.365092+0000"
Output for 5.4.0
string(31) "2014-07-10T13:40:35.409624+0000"
Output for 5.3.29
string(31) "2014-09-13T15:43:57.900964+0000"
Output for 5.3.28
string(31) "2014-07-10T13:40:35.456034+0000"
Output for 5.3.27
string(31) "2014-07-10T13:40:35.503535+0000"
Output for 5.3.26
string(31) "2014-07-10T13:40:35.552160+0000"
Output for 5.3.25
string(31) "2014-07-10T13:40:35.603037+0000"
Output for 5.3.24
string(31) "2014-07-10T13:40:35.652954+0000"
Output for 5.3.23
string(31) "2014-07-10T13:40:35.700775+0000"
Output for 5.3.22
string(31) "2014-07-10T13:40:35.745907+0000"
Output for 5.3.21
string(31) "2014-07-10T13:40:35.795089+0000"
Output for 5.3.20
string(31) "2014-07-10T13:40:35.841712+0000"
Output for 5.3.19
string(31) "2014-07-10T13:40:35.887199+0000"
Output for 5.3.18
string(31) "2014-07-10T13:40:35.932903+0000"
Output for 5.3.17
string(31) "2014-07-10T13:40:35.977511+0000"
Output for 5.3.16
string(31) "2014-07-10T13:40:36.022785+0000"
Output for 5.3.15
string(31) "2014-07-10T13:40:36.069197+0000"
Output for 5.3.14
string(31) "2014-07-10T13:40:36.114691+0000"
Output for 5.3.13
string(31) "2014-07-10T13:40:36.162509+0000"
Output for 5.3.12
string(31) "2014-07-10T13:40:36.211918+0000"
Output for 5.3.11
string(31) "2014-07-10T13:40:36.260355+0000"
Output for 5.3.10
string(31) "2014-07-10T13:40:36.307518+0000"
Output for 5.3.9
string(31) "2014-07-10T13:40:36.353205+0000"
Output for 5.3.8
string(31) "2014-07-10T13:40:36.401061+0000"
Output for 5.3.7
string(31) "2014-07-10T13:40:36.448856+0000"
Output for 5.3.6
string(31) "2014-07-10T13:40:36.494690+0000"
Output for 5.3.5
string(31) "2014-07-10T13:40:36.545499+0000"
Output for 5.3.4
string(31) "2014-07-10T13:40:36.605226+0000"
Output for 5.3.3
string(31) "2014-07-10T13:40:36.655232+0000"
Output for 5.3.2
string(31) "2014-07-10T13:40:36.699531+0000"
Output for 5.3.1
string(31) "2014-07-10T13:40:36.743841+0000"
Output for 5.3.0
Fatal error: Call to a member function format() on a non-object in /in/TMjuY on line 5
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function date_create_from_format() in /in/TMjuY on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/TMjuY on line 5
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 in /in/TMjuY on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/TMjuY on line 5
Process exited with code 255.