3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[0] = new DateTime(); echo $a[0]->format('H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
08:38:53
Output for 7.0.6
02:31:11
Output for 7.0.5
15:47:49
Output for 7.0.4
01:18:34
Output for 7.0.3
01:28:42
Output for 7.0.2
12:03:27
Output for 7.0.1
12:16:21
Output for 7.0.0
14:44:45
Output for hhvm-3.12.0
05:38:59
Output for hhvm-3.10.0
19:50:11
Output for 5.6.21
21:33:30
Output for 5.6.20
10:59:59
Output for 5.6.19
23:34:59
Output for 5.6.18
11:49:42
Output for 5.6.17
05:57:26
Output for 5.6.16
16:29:43
Output for 5.6.15
17:23:23
Output for 5.6.14
20:01:22
Output for 5.6.13
23:49:29
Output for 5.6.12
12:59:02
Output for 5.6.11
20:15:23
Output for 5.6.10
21:55:07
Output for 5.6.9
03:05:03
Output for 5.6.8
10:39:54
Output for 5.6.7
21:27:36
Output for 5.5.35
00:55:49
Output for 5.5.34
16:56:05
Output for 5.5.33
12:09:44
Output for 5.5.32
17:51:20
Output for 5.5.31
08:50:11
Output for 5.5.30
19:24:57
Output for 5.5.29
13:56:52
Output for 5.5.28
16:15:32
Output for 5.5.27
18:46:22
Output for 5.5.26
00:13:49
Output for 5.5.25
06:21:42
Output for 5.5.24
13:52:10
Output for 5.4.45
23:17:40
Output for 5.4.44
23:17:36
Output for 5.4.43
18:19:14
Output for 5.4.42
18:19:13
Output for 5.4.41
15:12:26
Output for 5.4.40
15:12:21
Output for 5.4.39
15:12:20
Output for 5.4.38
00:05:38
Output for 5.4.36 - 5.4.37
08:09:53
Output for 5.4.34 - 5.4.35
08:09:52
Output for 5.4.32
16:39:14
Output for 5.4.31
16:39:11
Output for 5.3.29, 5.4.30
16:39:06
Output for 5.4.28 - 5.4.29
16:39:05
Output for 5.4.21 - 5.4.27
08:38:54
Output for 5.3.28, 5.4.0 - 5.4.20
08:38:55
Output for 5.3.6 - 5.3.27
08:38:56
Output for 5.2.0 - 5.3.5
08:38:57
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/c2ud3 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/c2ud3 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/c2ud3 on line 3