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"); $now = new DateTime(); echo $now->format("G:i:s:u"); echo $now->format("G:i:s:u");
based on QZjLu
Output for 7.1.0
2:18:40:0038312:18:40:0038312:18:40:0038602:18:40:003860
Output for 7.0.14
2:18:40:0000002:18:40:0000002:18:40:0000002:18:40:000000
Output for 7.0.6
10:28:04:00000010:28:04:00000010:28:04:00000010:28:04:000000
Output for 7.0.5
23:13:44:00000023:13:44:00000023:13:44:00000023:13:44:000000
Output for 7.0.4
9:50:29:0000009:50:29:0000009:50:29:0000009:50:29:000000
Output for 7.0.3
10:30:40:00000010:30:40:00000010:30:40:00000010:30:40:000000
Output for 7.0.2
16:29:06:00000016:29:06:00000016:29:06:00000016:29:06:000000
Output for 7.0.1
21:04:12:00000021:04:12:00000021:04:12:00000021:04:12:000000
Output for 7.0.0
22:36:24:00000022:36:24:00000022:36:24:00000022:36:24:000000
Output for hhvm-3.12.0
13:17:35:00000013:17:35:00000013:17:35:00000013:17:35:000000
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
5:47:17:0000005:47:17:0000005:47:17:0000005:47:17:000000
Output for 5.6.20
22:13:29:00000022:13:29:00000022:13:29:00000022:13:29:000000
Output for 5.6.19
17:57:52:00000017:57:52:00000017:57:52:00000017:57:52:000000
Output for 5.6.18
2:04:49:0000002:04:49:0000002:04:49:0000002:04:49:000000
Output for 5.6.17
14:44:11:00000014:44:11:00000014:44:11:00000014:44:11:000000
Output for 5.6.16
0:33:36:0000000:33:36:0000000:33:36:0000000:33:36:000000
Output for 5.6.15
1:28:53:0000001:28:53:0000001:28:53:0000001:28:53:000000
Output for 5.6.14
3:47:42:0000003:47:42:0000003:47:42:0000003:47:42:000000
Output for 5.6.13
7:42:18:0000007:42:18:0000007:42:18:0000007:42:18:000000
Output for 5.6.12
21:30:39:00000021:30:39:00000021:30:39:00000021:30:39:000000
Output for 5.6.11
4:32:37:0000004:32:37:0000004:32:37:0000004:32:37:000000
Output for 5.6.10
6:17:22:0000006:17:22:0000006:17:22:0000006:17:22:000000
Output for 5.6.9
11:16:31:00000011:16:31:00000011:16:31:00000011:16:31:000000
Output for 5.6.8
19:25:03:00000019:25:03:00000019:25:03:00000019:25:03:000000
Output for 5.5.35
9:35:02:0000009:35:02:0000009:35:02:0000009:35:02:000000
Output for 5.5.34
0:33:52:0000000:33:52:0000000:33:52:0000000:33:52:000000
Output for 5.5.33
20:54:49:00000020:54:49:00000020:54:49:00000020:54:49:000000
Output for 5.5.32
3:38:11:0000003:38:11:0000003:38:11:0000003:38:11:000000
Output for 5.5.31
17:29:21:00000017:29:21:00000017:29:21:00000017:29:21:000000
Output for 5.5.30
3:25:39:0000003:25:39:0000003:25:39:0000003:25:39:000000
Output for 5.5.29
21:49:36:00000021:49:36:00000021:49:36:00000021:49:36:000000
Output for 5.5.28
0:46:55:0000000:46:55:0000000:46:55:0000000:46:55:000000
Output for 5.5.27
3:04:33:0000003:04:33:0000003:04:33:0000003:04:33:000000
Output for 5.5.26
8:44:07:0000008:44:07:0000008:44:07:0000008:44:07:000000
Output for 5.5.25
15:08:47:00000015:08:47:00000015:08:47:00000015:08:47:000000
Output for 5.5.24
22:23:01:00000022:23:01:00000022:23:01:00000022:23:01:000000
Output for 5.4.44 - 5.4.45
5:12:00:0000005:12:00:0000005:12:00:0000005:12:00:000000
Output for 5.4.43
5:12:01:0000005:12:01:0000005:12:01:0000005:12:01:000000
Output for 5.4.41 - 5.4.42
5:12:02:0000005:12:02:0000005:12:02:0000005:12:02:000000
Output for 5.4.39 - 5.4.40
5:12:03:0000005:12:03:0000005:12:03:0000005:12:03:000000
Output for 5.4.36 - 5.4.38
5:12:04:0000005:12:04:0000005:12:04:0000005:12:04:000000
Output for 5.4.34 - 5.4.35
5:12:05:0000005:12:05:0000005:12:05:0000005:12:05:000000
Output for 5.3.29, 5.4.29 - 5.4.32
5:12:06:0000005:12:06:0000005:12:06:0000005:12:06:000000
Output for 5.4.25 - 5.4.28
5:12:07:0000005:12:07:0000005:12:07:0000005:12:07:000000
Output for 5.3.28, 5.4.22 - 5.4.24
5:12:08:0000005:12:08:0000005:12:08:0000005:12:08:000000
Output for 5.4.19 - 5.4.21
5:12:09:0000005:12:09:0000005:12:09:0000005:12:09:000000
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.18
5:12:10:0000005:12:10:0000005:12:10:0000005:12:10:000000
Output for 5.3.24 - 5.3.25, 5.4.13 - 5.4.16
5:12:11:0000005:12:11:0000005:12:11:0000005:12:11:000000
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.12
5:12:12:0000005:12:12:0000005:12:12:0000005:12:12:000000
Output for 5.3.16 - 5.3.19, 5.4.6 - 5.4.9
5:12:13:0000005:12:13:0000005:12:13:0000005:12:13:000000
Output for 5.3.12 - 5.3.15, 5.4.3 - 5.4.5
5:12:14:0000005:12:14:0000005:12:14:0000005:12:14:000000
Output for 5.3.8 - 5.3.11, 5.4.0 - 5.4.2
5:12:15:0000005:12:15:0000005:12:15:0000005:12:15:000000
Output for 5.2.15 - 5.2.17, 5.3.4 - 5.3.7
5:12:16:0000005:12:16:0000005:12:16:0000005:12:16:000000
Output for 5.2.11 - 5.2.14, 5.3.1 - 5.3.3
5:12:17:0000005:12:17:0000005:12:17:0000005:12:17:000000
Output for 5.2.5 - 5.2.10, 5.3.0
5:12:18:0000005:12:18:0000005:12:18:0000005:12:18:000000
Output for 5.2.2 - 5.2.4
5:12:19:0000005:12:19:0000005:12:19:0000005:12:19:000000
Output for 5.2.0 - 5.2.1
5:12:19:u5:12:19:u5:12:19:u5:12:19:u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/JiZ0v 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/JiZ0v 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/JiZ0v on line 3