3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime(); echo $now->format("G:i:s:u");
based on kWcgJ
Output for 7.1.0
2:17:27:005032
Output for 5.6.28, 7.0.14
2:17:27:000000
Output for 7.0.6
7:55:31:000000
Output for 7.0.5
20:53:15:000000
Output for 7.0.4
7:08:28:000000
Output for 7.0.3
7:39:50:000000
Output for 7.0.2
13:25:14:000000
Output for 7.0.1
18:27:52:000000
Output for 7.0.0
20:08:49:000000
Output for 5.6.21
3:14:27:000000
Output for 5.6.20
19:42:11:000000
Output for 5.6.19
15:13:33:000000
Output for 5.6.18
22:57:50:000000
Output for 5.6.17
11:58:31:000000
Output for 5.6.16
21:53:51:000000
Output for 5.6.15
22:47:18:000000
Output for 5.6.14
1:21:41:000000
Output for 5.6.13
5:16:59:000000
Output for 5.6.12
18:52:42:000000
Output for 5.6.11
1:51:40:000000
Output for 5.6.10
3:43:20:000000
Output for 5.6.9
8:40:27:000000
Output for 5.6.8
16:39:00:000000
Output for 5.6.7
10:32:43:000000
Output for 5.5.35
6:55:52:000000
Output for 5.5.34
22:09:29:000000
Output for 5.5.33
18:03:50:000000
Output for 5.5.32
0:48:42:000000
Output for 5.5.31
14:45:54:000000
Output for 5.5.30
0:55:11:000000
Output for 5.5.29
19:22:00:000000
Output for 5.5.28
21:58:12:000000
Output for 5.5.27
0:25:06:000000
Output for 5.5.26
6:08:57:000000
Output for 5.5.25
12:12:00:000000
Output for 5.5.24
19:07:19:000000
Output for 5.4.45
15:35:52:000000
Output for 5.4.44
15:35:48:000000
Output for 5.4.43
15:35:44:000000
Output for 5.4.42
10:33:28:000000
Output for 5.4.41
10:33:26:000000
Output for 5.4.40
10:33:22:000000
Output for 5.4.39
10:33:21:000000
Output for 5.4.38
10:33:20:000000
Output for 5.4.36 - 5.4.37
10:33:18:000000
Output for 5.4.35
10:33:17:000000
Output for 5.4.18 - 5.4.34
2:17:32:000000
Output for 5.3.29 - 5.4.17
2:17:33:000000
Output for 5.3.12 - 5.3.28
2:17:34:000000
Output for 5.2.9 - 5.3.11
2:17:35:000000
Output for 5.2.2 - 5.2.8
2:17:36:000000
Output for 5.2.0 - 5.2.1
2:17:36:u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/b47pt 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/b47pt 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/b47pt on line 3