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:15:17.003979
Output for 5.6.28, 7.0.14
2014-03-15 22:15:17.000000
Output for 7.0.6
2016-05-02 23:44:02.000000
Output for 7.0.5
2016-04-02 13:19:54.000000
Output for 7.0.4
2016-03-09 22:11:57.000000
Output for 7.0.3
2016-03-17 22:35:11.000000
Output for 7.0.2
2016-03-21 09:19:40.000000
Output for 7.0.1
2016-03-23 08:57:48.000000
Output for 7.0.0
2016-03-26 12:09:00.000000
Output for hhvm-3.12.0
2016-03-11 01:28:47.000000
Output for hhvm-3.10.0
2016-03-29 15:49:51.000000
Output for 5.6.21
2016-05-01 18:50:07.000000
Output for 5.6.20
2016-04-09 08:36:47.000000
Output for 5.6.19
2016-03-06 19:20:54.000000
Output for 5.6.18
2016-03-14 07:34:12.000000
Output for 5.6.17
2016-03-19 03:11:40.000000
Output for 5.6.16
2016-03-27 13:51:19.000000
Output for 5.6.15
2016-03-28 14:43:52.000000
Output for 5.6.14
2016-04-01 17:34:17.000000
Output for 5.6.13
2016-04-14 21:31:17.000000
Output for 5.6.12
2016-04-19 10:31:44.000000
Output for 5.6.11
2016-04-22 17:52:13.000000
Output for 5.6.10
2016-04-24 19:29:51.000000
Output for 5.6.9
2016-04-27 00:27:12.000000
Output for 5.6.8
2016-04-29 08:07:52.000000
Output for 5.5.35
2016-05-21 21:59:36.000000
Output for 5.5.34
2016-04-10 14:01:03.000000
Output for 5.5.33
2016-03-08 09:18:49.000000
Output for 5.5.32
2016-03-15 18:21:18.000000
Output for 5.5.31
2016-03-20 06:06:01.000000
Output for 5.5.30
2016-03-31 16:54:39.000000
Output for 5.5.29
2016-04-16 11:29:25.000000
Output for 5.5.28
2016-04-20 13:37:35.000000
Output for 5.5.27
2016-04-21 16:23:01.000000
Output for 5.5.26
2016-04-25 21:43:15.000000
Output for 5.5.25
2016-04-28 03:48:30.000000
Output for 5.5.24
2016-04-30 11:31:41.000000
Output for 5.4.44 - 5.4.45
2015-11-19 18:12:06.000000
Output for 5.4.43
2015-11-19 18:12:07.000000
Output for 5.4.41 - 5.4.42
2015-11-19 18:12:08.000000
Output for 5.4.40
2015-11-19 18:12:09.000000
Output for 5.4.38 - 5.4.39
2015-11-19 18:12:10.000000
Output for 5.4.35 - 5.4.37
2015-11-19 18:12:11.000000
Output for 5.4.34
2015-11-19 18:12:12.000000
Output for 5.3.29, 5.4.31 - 5.4.32
2015-11-19 18:12:13.000000
Output for 5.4.27 - 5.4.30
2015-11-19 18:12:14.000000
Output for 5.4.25 - 5.4.26
2015-11-19 18:12:15.000000
Output for 5.3.28, 5.4.23 - 5.4.24
2015-11-19 18:12:16.000000
Output for 5.4.19 - 5.4.22
2015-11-19 18:12:17.000000
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.18
2015-11-19 18:12:18.000000
Output for 5.3.24 - 5.3.25, 5.4.13 - 5.4.16
2015-11-19 18:12:19.000000
Output for 5.3.20 - 5.3.23, 5.4.11 - 5.4.12
2015-11-19 18:12:20.000000
Output for 5.3.17 - 5.3.19, 5.4.7 - 5.4.10
2015-11-19 18:12:21.000000
Output for 5.3.14 - 5.3.16, 5.4.4 - 5.4.6
2015-11-19 18:12:22.000000
Output for 5.3.11 - 5.3.13, 5.4.2 - 5.4.3
2015-11-19 18:12:23.000000
Output for 5.3.7 - 5.3.10, 5.4.0 - 5.4.1
2015-11-19 18:12:24.000000
Output for 5.2.15 - 5.2.17, 5.3.4 - 5.3.6
2015-11-19 18:12:25.000000
Output for 5.2.11 - 5.2.14, 5.3.1 - 5.3.3
2015-11-19 18:12:26.000000
Output for 5.2.6 - 5.2.10, 5.3.0
2015-11-19 18:12:27.000000
Output for 5.2.2 - 5.2.5
2015-11-19 18:12:28.000000
Output for 5.2.1
2015-11-19 18:12:28.u
Output for 5.2.0
2015-11-19 18:12:29.u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/TC0Ck on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/TC0Ck on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/TC0Ck on line 2