3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function GetFormattedMicroTime($timestamp = false) { return DateTime::createFromFormat('u','536290')->format('Y-m-d\TH:i:s.u'); } $test = GetFormattedMicroTime(); print_r($test);
Output for 5.6.28, 7.0.14 - 7.1.0
2014-06-23T17:57:28.536290
Output for 7.0.6
2016-05-03T00:31:54.536290
Output for 7.0.5
2016-04-02T14:05:07.536290
Output for 7.0.4
2016-03-09T23:02:40.536290
Output for 7.0.3
2016-03-17T23:27:40.536290
Output for 7.0.2
2016-03-21T10:10:21.536290
Output for 7.0.1
2016-03-23T09:49:36.536290
Output for 7.0.0
2016-03-26T12:54:15.536290
Output for hhvm-3.12.0
2016-03-11T02:41:23.536290
Output for hhvm-3.10.0
2016-03-29T17:13:16.536290
Output for 5.6.21
2016-05-01T19:37:22.536290
Output for 5.6.20
2016-04-09T09:20:38.536290
Output for 5.6.19
2016-03-06T20:27:42.536290
Output for 5.6.18
2016-03-14T08:52:01.536290
Output for 5.6.17
2016-03-19T04:03:12.536290
Output for 5.6.16
2016-03-27T14:38:33.536290
Output for 5.6.15
2016-03-28T15:37:22.536290
Output for 5.6.14
2016-04-01T18:19:20.536290
Output for 5.6.13
2016-04-14T22:16:16.536290
Output for 5.6.12
2016-04-19T11:20:05.536290
Output for 5.6.11
2016-04-22T18:38:10.536290
Output for 5.6.10
2016-04-24T20:16:40.536290
Output for 5.6.9
2016-04-27T01:21:17.536290
Output for 5.6.8
2016-04-29T08:55:26.536290
Output for 5.6.7
2016-05-24T18:45:41.536290
Output for 5.5.35
2016-05-21T22:50:45.536290
Output for 5.5.34
2016-04-10T14:57:52.536290
Output for 5.5.33
2016-03-08T10:14:23.536290
Output for 5.5.32
2016-03-15T19:16:09.536290
Output for 5.5.31
2016-03-20T06:57:30.536290
Output for 5.5.30
2016-03-31T17:41:54.536290
Output for 5.5.29
2016-04-16T12:19:02.536290
Output for 5.5.28
2016-04-20T14:29:50.536290
Output for 5.5.27
2016-04-21T17:09:18.536290
Output for 5.5.26
2016-04-25T22:31:10.536290
Output for 5.5.25
2016-04-28T04:38:07.536290
Output for 5.5.24
2016-04-30T12:16:57.536290
Output for 5.4.45
2015-09-12T04:23:19.536290
Output for 5.4.44
2015-09-12T04:23:17.536290
Output for 5.4.43
2015-09-12T04:23:13.536290
Output for 5.4.42
2015-07-08T19:10:31.536290
Output for 5.4.41
2015-05-26T07:03:07.536290
Output for 5.4.40
2015-05-02T09:11:31.536290
Output for 5.4.39
2015-05-02T09:11:30.536290
Output for 5.4.38
2015-02-28T23:25:44.536290
Output for 5.4.36 - 5.4.37
2015-02-06T07:12:22.536290
Output for 5.4.34 - 5.4.35
2014-11-16T07:18:53.536290
Output for 5.4.32
2014-09-04T06:18:54.536290
Output for 5.4.31
2014-09-04T06:18:53.536290
Output for 5.3.29, 5.4.30
2014-09-04T06:18:52.536290
Output for 5.4.16 - 5.4.29
2014-06-23T17:57:32.536290
Output for 5.3.23 - 5.3.28, 5.4.0 - 5.4.15
2014-06-23T17:57:33.536290
Output for 5.3.2 - 5.3.22
2014-06-23T17:57:34.536290
Output for 5.3.1
2014-06-23T17:57:35.536290
Output for 5.3.0
Fatal error: Call to a member function format() on a non-object in /in/vgsBd on line 3
Process exited with code 255.
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/vgsBd on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/vgsBd on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/vgsBd 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/vgsBd on line 3
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/vgsBd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/vgsBd on line 3
Process exited with code 255.