3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('d-m-YY H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
10-03-20142014 17:49:07
Output for 7.0.6
03-05-20162016 02:12:15
Output for 7.0.5
02-04-20162016 15:27:28
Output for 7.0.4
10-03-20162016 00:55:44
Output for 7.0.3
18-03-20162016 01:07:59
Output for 7.0.2
21-03-20162016 11:43:05
Output for 7.0.1
23-03-20162016 11:54:48
Output for 7.0.0
26-03-20162016 14:26:09
Output for hhvm-3.12.0
11-03-20162016 05:29:10
Output for hhvm-3.10.0
29-03-20162016 19:22:09
Output for 5.6.21
01-05-20162016 21:14:35
Output for 5.6.20
09-04-20162016 10:42:16
Output for 5.6.19
06-03-20162016 23:11:05
Output for 5.6.18
14-03-20162016 10:50:53
Output for 5.6.17
19-03-20162016 05:36:57
Output for 5.6.16
27-03-20162016 16:11:13
Output for 5.6.15
28-03-20162016 17:04:49
Output for 5.6.14
01-04-20162016 19:43:19
Output for 5.6.13
14-04-20162016 23:31:14
Output for 5.6.12
19-04-20162016 12:39:20
Output for 5.6.11
22-04-20162016 19:55:36
Output for 5.6.10
24-04-20162016 21:35:37
Output for 5.6.9
27-04-20162016 02:44:45
Output for 5.6.8
29-04-20162016 10:19:59
Output for 5.6.7
24-05-20162016 21:00:19
Output for 5.5.35
22-05-20162016 00:34:53
Output for 5.5.34
10-04-20162016 16:37:57
Output for 5.5.33
08-03-20162016 11:49:54
Output for 5.5.32
16-03-20162016 17:30:31
Output for 5.5.31
20-03-20162016 08:29:55
Output for 5.5.30
31-03-20162016 19:06:14
Output for 5.5.29
16-04-20162016 13:37:59
Output for 5.5.28
20-04-20162016 15:53:44
Output for 5.5.27
21-04-20162016 18:27:14
Output for 5.5.26
25-04-20162016 23:53:00
Output for 5.5.25
28-04-20162016 06:01:09
Output for 5.5.24
30-04-20162016 13:32:29
Output for 5.4.45
14-09-20152015 04:12:31
Output for 5.4.44
14-09-20152015 04:12:28
Output for 5.4.43
14-09-20152015 04:12:24
Output for 5.4.42
14-09-20152015 04:12:23
Output for 5.4.41
14-09-20152015 04:12:21
Output for 5.4.39 - 5.4.40
10-05-20152015 16:50:37
Output for 5.4.38
02-03-20152015 13:38:18
Output for 5.4.35 - 5.4.37
08-02-20152015 09:32:01
Output for 5.4.34
08-02-20152015 09:32:00
Output for 5.4.32
07-09-20142014 08:55:15
Output for 5.4.31
07-09-20142014 08:55:12
Output for 5.4.30
07-09-20142014 08:55:08
Output for 5.4.28 - 5.4.29
07-09-20142014 08:55:07
Output for 5.4.27
07-09-20142014 08:55:13
Output for 5.4.15 - 5.4.26
10-03-20142014 17:49:08
Output for 5.4.0 - 5.4.14
10-03-20142014 17:49:09
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/DI92K on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/DI92K on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/DI92K on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/DI92K on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/DI92K on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/DI92K on line 2 Parse error: parse error, expecting `','' or `';'' in /in/DI92K on line 2
Process exited with code 255.