3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); echo $dt->format('Y-m-d H:i:s.u');
Output for 7.1.0
2014-03-15 22:20:07.006023
Output for 5.6.28, 7.0.14
2014-03-15 22:20:07.000000
Output for 7.0.6
2016-05-03 18:29:40.000000
Output for 7.0.5
2016-04-03 06:54:54.000000
Output for 7.0.4
2016-03-10 18:41:45.000000
Output for 7.0.3
2016-03-18 19:50:21.000000
Output for 7.0.2
2016-03-23 01:57:46.000000
Output for 7.0.1
2016-03-24 05:37:10.000000
Output for 7.0.0
2016-03-27 07:33:18.000000
Output for hhvm-3.12.0
2016-03-13 10:13:56.000000
Output for hhvm-3.10.0
2016-03-31 01:49:26.000000
Output for 5.6.21
2016-05-02 13:39:02.000000
Output for 5.6.20
2016-04-10 05:54:11.000000
Output for 5.6.19
2016-03-08 02:53:11.000000
Output for 5.6.18
2016-03-15 11:36:28.000000
Output for 5.6.17
2016-03-19 23:16:04.000000
Output for 5.6.16
2016-03-28 08:20:37.000000
Output for 5.6.15
2016-03-29 09:11:18.000000
Output for 5.6.14
2016-04-02 11:02:27.000000
Output for 5.6.13
2016-04-15 15:26:43.000000
Output for 5.6.12
2016-04-20 05:55:51.000000
Output for 5.6.11
2016-04-24 12:18:27.000000
Output for 5.6.10
2016-04-25 14:21:08.000000
Output for 5.6.9
2016-04-27 19:31:14.000000
Output for 5.6.8
2016-04-30 04:23:24.000000
Output for 5.5.35
2016-05-22 20:51:56.000000
Output for 5.5.34
2016-04-11 08:06:09.000000
Output for 5.5.33
2016-03-09 05:36:27.000000
Output for 5.5.32
2016-03-17 15:31:56.000000
Output for 5.5.31
2016-03-21 02:18:04.000000
Output for 5.5.30
2016-04-01 11:05:03.000000
Output for 5.5.29
2016-04-17 05:49:55.000000
Output for 5.5.28
2016-04-21 09:09:45.000000
Output for 5.5.27
2016-04-22 10:56:12.000000
Output for 5.5.26
2016-04-26 17:04:10.000000
Output for 5.5.25
2016-04-28 23:56:35.000000
Output for 5.5.24
2016-05-24 06:29:14.000000
Output for 5.4.45
2015-11-08 06:45:17.000000
Output for 5.4.44
2015-11-08 06:45:22.000000
Output for 5.4.43
2015-11-08 06:45:27.000000
Output for 5.4.42
2015-11-08 06:45:29.000000
Output for 5.4.41
2015-11-08 06:45:30.000000
Output for 5.4.40
2015-11-08 06:45:33.000000
Output for 5.4.39
2015-11-08 06:45:36.000000
Output for 5.4.38
2015-11-08 06:45:37.000000
Output for 5.4.36 - 5.4.37
2015-11-08 06:45:40.000000
Output for 5.4.35
2015-11-08 06:45:42.000000
Output for 5.4.34
2015-11-08 06:45:44.000000
Output for 5.3.29, 5.4.32
2015-11-08 06:45:47.000000
Output for 5.4.31
2015-11-08 06:45:48.000000
Output for 5.4.30
2015-11-08 06:45:49.000000
Output for 5.4.29
2015-11-08 06:45:50.000000
Output for 5.4.28
2015-11-08 06:45:51.000000
Output for 5.4.27
2015-11-08 06:45:52.000000
Output for 5.4.26
2015-11-08 06:45:53.000000
Output for 5.4.25
2015-11-08 06:45:54.000000
Output for 5.4.24
2015-11-08 06:45:55.000000
Output for 5.4.23
2015-11-08 06:45:56.000000
Output for 5.4.22
2015-11-08 06:45:58.000000
Output for 5.4.21
2015-11-08 06:45:59.000000
Output for 5.4.20
2015-11-08 06:46:00.000000
Output for 5.4.19
2015-11-08 06:46:01.000000
Output for 5.4.18
2015-11-08 06:46:02.000000
Output for 5.3.27, 5.4.17
2015-11-08 06:46:03.000000
Output for 5.3.26, 5.4.16
2015-11-08 06:46:04.000000
Output for 5.3.25, 5.4.15
2015-11-08 06:46:05.000000
Output for 5.3.24, 5.4.14
2015-11-08 06:46:06.000000
Output for 5.3.23, 5.4.13
2015-11-08 06:46:07.000000
Output for 5.3.21 - 5.3.22, 5.4.12
2015-11-08 06:46:08.000000
Output for 5.3.20, 5.4.11
2015-11-08 06:46:09.000000
Output for 5.4.9 - 5.4.10
2015-11-08 06:46:10.000000
Output for 5.3.17, 5.4.6 - 5.4.8
2015-11-08 06:46:12.000000
Output for 5.3.14, 5.4.5
2015-11-08 06:46:14.000000
Output for 5.4.3 - 5.4.4
2015-11-08 06:46:15.000000
Output for 5.3.11, 5.4.2
2015-11-08 06:46:17.000000
Output for 5.4.0 - 5.4.1
2015-11-08 06:46:18.000000
Output for 5.3.28
2015-11-08 06:45:57.000000
Output for 5.3.18 - 5.3.19
2015-11-08 06:46:11.000000
Output for 5.3.15 - 5.3.16
2015-11-08 06:46:13.000000
Output for 5.3.12 - 5.3.13
2015-11-08 06:46:16.000000
Output for 5.3.9 - 5.3.10
2015-11-08 06:46:19.000000
Output for 5.3.7 - 5.3.8
2015-11-08 06:46:20.000000
Output for 5.2.17, 5.3.5 - 5.3.6
2015-11-08 06:46:21.000000
Output for 5.2.15 - 5.2.16, 5.3.3 - 5.3.4
2015-11-08 06:46:22.000000
Output for 5.2.13 - 5.2.14, 5.3.2
2015-11-08 06:46:23.000000
Output for 5.2.12, 5.3.1
2015-11-08 06:46:24.000000
Output for 5.2.11, 5.3.0
2015-11-08 06:46:25.000000
Output for 5.2.9 - 5.2.10
2015-11-08 06:46:26.000000
Output for 5.2.7 - 5.2.8
2015-11-08 06:46:27.000000
Output for 5.2.5 - 5.2.6
2015-11-08 06:46:28.000000
Output for 5.2.2 - 5.2.4
2015-11-08 06:46:29.000000
Output for 5.2.1
2015-11-08 06:46:30.u
Output for 5.2.0
2015-11-08 06:46:31.u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/QOrJt on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/QOrJt on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/QOrJt on line 3