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:28
Output for 7.0.6
14:21:58
Output for 7.0.5
03:01:17
Output for 7.0.4
14:15:33
Output for 7.0.3
14:51:42
Output for 7.0.2
20:53:21
Output for 7.0.1
01:29:03
Output for 7.0.0
03:28:25
Output for hhvm-3.12.0
20:36:38
Output for hhvm-3.10.0
19:01:38
Output for 5.6.21
09:33:54
Output for 5.6.20
01:56:35
Output for 5.6.19
21:59:06
Output for 5.6.18
06:49:31
Output for 5.6.17
18:48:40
Output for 5.6.16
04:18:24
Output for 5.6.15
05:12:23
Output for 5.6.14
07:17:17
Output for 5.6.13
11:24:45
Output for 5.6.12
01:41:43
Output for 5.6.11
08:20:02
Output for 5.6.10
10:09:05
Output for 5.6.9
15:15:38
Output for 5.6.8
23:28:47
Output for 5.5.35
13:34:50
Output for 5.5.34
04:13:08
Output for 5.5.33
01:04:28
Output for 5.5.32
10:10:26
Output for 5.5.31
21:32:24
Output for 5.5.30
07:06:21
Output for 5.5.29
01:42:03
Output for 5.5.28
04:52:21
Output for 5.5.27
06:58:08
Output for 5.5.26
12:47:12
Output for 5.5.25
19:16:49
Output for 5.5.24
02:24:59
Output for 5.4.45
16:27:12
Output for 5.4.44
01:39:22
Output for 5.4.43
19:39:16
Output for 5.4.42
17:06:27
Output for 5.4.41
15:12:44
Output for 5.4.39 - 5.4.40
15:12:39
Output for 5.4.38
00:05:50
Output for 5.4.36 - 5.4.37
08:09:45
Output for 5.4.34 - 5.4.35
08:09:44
Output for 5.4.32
16:38:51
Output for 5.4.31
16:38:48
Output for 5.3.29, 5.4.29 - 5.4.30
16:38:44
Output for 5.4.28
16:38:43
Output for 5.4.22 - 5.4.27
08:38:29
Output for 5.3.28, 5.4.0 - 5.4.21
08:38:30
Output for 5.3.7 - 5.3.27
08:38:31
Output for 5.3.0 - 5.3.6
08:38:32
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/icgZm on line 3 08:38:32
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/icgZm on line 3 Fatal error: Class 'DateTime' not found in /in/icgZm on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/icgZm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/icgZm on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/icgZm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/icgZm on line 3