3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime(); echo $now->format("G:i:s:u"); echo $now->format("G:i:s:u"); echo $now->format("G:i:s:u"); echo $now->format("G:i:s:u");
based on b47pt
Output for 7.1.0
2:18:20:0050602:18:20:0050602:18:20:0050602:18:20:005060
Output for 5.6.28, 7.0.14
2:18:20:0000002:18:20:0000002:18:20:0000002:18:20:000000
Output for 7.0.6
7:55:41:0000007:55:41:0000007:55:41:0000007:55:41:000000
Output for 7.0.5
20:53:26:00000020:53:26:00000020:53:26:00000020:53:26:000000
Output for 7.0.4
7:08:38:0000007:08:38:0000007:08:38:0000007:08:38:000000
Output for 7.0.3
7:40:02:0000007:40:02:0000007:40:02:0000007:40:02:000000
Output for 7.0.2
13:25:27:00000013:25:27:00000013:25:27:00000013:25:27:000000
Output for 7.0.1
18:28:02:00000018:28:02:00000018:28:02:00000018:28:02:000000
Output for 7.0.0
20:09:01:00000020:09:01:00000020:09:01:00000020:09:01:000000
Output for 5.6.21
3:14:43:0000003:14:43:0000003:14:43:0000003:14:43:000000
Output for 5.6.20
19:42:24:00000019:42:24:00000019:42:24:00000019:42:24:000000
Output for 5.6.19
15:13:44:00000015:13:44:00000015:13:44:00000015:13:44:000000
Output for 5.6.18
22:58:02:00000022:58:02:00000022:58:02:00000022:58:02:000000
Output for 5.6.17
11:58:42:00000011:58:42:00000011:58:42:00000011:58:42:000000
Output for 5.6.16
21:54:01:00000021:54:01:00000021:54:01:00000021:54:01:000000
Output for 5.6.15
22:47:27:00000022:47:27:00000022:47:27:00000022:47:27:000000
Output for 5.6.14
1:21:52:0000001:21:52:0000001:21:52:0000001:21:52:000000
Output for 5.6.13
5:17:09:0000005:17:09:0000005:17:09:0000005:17:09:000000
Output for 5.6.12
18:52:53:00000018:52:53:00000018:52:53:00000018:52:53:000000
Output for 5.6.11
1:51:51:0000001:51:51:0000001:51:51:0000001:51:51:000000
Output for 5.6.10
3:43:30:0000003:43:30:0000003:43:30:0000003:43:30:000000
Output for 5.6.9
8:40:38:0000008:40:38:0000008:40:38:0000008:40:38:000000
Output for 5.6.8
16:39:09:00000016:39:09:00000016:39:09:00000016:39:09:000000
Output for 5.6.7
10:33:11:00000010:33:11:00000010:33:11:00000010:33:11:000000
Output for 5.5.35
6:56:10:0000006:56:10:0000006:56:10:0000006:56:10:000000
Output for 5.5.34
22:09:40:00000022:09:40:00000022:09:40:00000022:09:40:000000
Output for 5.5.33
18:04:02:00000018:04:02:00000018:04:02:00000018:04:02:000000
Output for 5.5.32
0:48:54:0000000:48:54:0000000:48:54:0000000:48:54:000000
Output for 5.5.31
14:46:05:00000014:46:05:00000014:46:05:00000014:46:05:000000
Output for 5.5.30
0:55:22:0000000:55:22:0000000:55:22:0000000:55:22:000000
Output for 5.5.29
19:22:09:00000019:22:09:00000019:22:09:00000019:22:09:000000
Output for 5.5.28
21:58:23:00000021:58:23:00000021:58:23:00000021:58:23:000000
Output for 5.5.27
0:25:21:0000000:25:21:0000000:25:21:0000000:25:21:000000
Output for 5.5.26
6:09:06:0000006:09:06:0000006:09:06:0000006:09:06:000000
Output for 5.5.25
12:12:08:00000012:12:08:00000012:12:08:00000012:12:08:000000
Output for 5.5.24
19:07:29:00000019:07:29:00000019:07:29:00000019:07:29:000000
Output for 5.4.45
15:35:52:00000015:35:52:00000015:35:52:00000015:35:52:000000
Output for 5.4.44
15:35:49:00000015:35:49:00000015:35:49:00000015:35:49:000000
Output for 5.4.43
15:35:45:00000015:35:45:00000015:35:45:00000015:35:45:000000
Output for 5.4.42
10:33:49:00000010:33:49:00000010:33:49:00000010:33:49:000000
Output for 5.4.41
10:33:47:00000010:33:47:00000010:33:47:00000010:33:47:000000
Output for 5.4.39 - 5.4.40
10:33:41:00000010:33:41:00000010:33:41:00000010:33:41:000000
Output for 5.4.38
10:33:39:00000010:33:39:00000010:33:39:00000010:33:39:000000
Output for 5.4.36 - 5.4.37
10:33:37:00000010:33:37:00000010:33:37:00000010:33:37:000000
Output for 5.4.35
10:33:36:00000010:33:36:00000010:33:36:00000010:33:36:000000
Output for 5.4.19 - 5.4.34
2:18:25:0000002:18:25:0000002:18:25:0000002:18:25:000000
Output for 5.3.27 - 5.4.18
2:18:26:0000002:18:26:0000002:18:26:0000002:18:26:000000
Output for 5.3.7 - 5.3.26
2:18:27:0000002:18:27:0000002:18:27:0000002:18:27:000000
Output for 5.2.2 - 5.3.6
2:18:28:0000002:18:28:0000002:18:28:0000002:18:28:000000
Output for 5.2.0 - 5.2.1
2:18:28:u2:18:28:u2:18:28:u2:18:28:u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/QZjLu 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/QZjLu 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/QZjLu on line 3