3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('d-m-YYYY H:i:s');
based on jiOpg
Output for 5.6.28, 7.0.14 - 7.1.0
29-09-2014201420142014 15:00:38
Output for 7.0.6
03-05-2016201620162016 10:13:36
Output for 7.0.5
02-04-2016201620162016 23:01:04
Output for 7.0.4
10-03-2016201620162016 09:36:24
Output for 7.0.3
18-03-2016201620162016 10:15:49
Output for 7.0.2
22-03-2016201620162016 16:14:20
Output for 7.0.1
23-03-2016201620162016 20:50:51
Output for 7.0.0
26-03-2016201620162016 22:23:18
Output for hhvm-3.12.0
12-03-2016201620162016 12:48:10
Output for hhvm-3.10.0
30-03-2016201620162016 11:54:55
Output for 5.6.21
02-05-2016201620162016 05:33:28
Output for 5.6.20
09-04-2016201620162016 21:58:53
Output for 5.6.19
07-03-2016201620162016 17:44:08
Output for 5.6.18
15-03-2016201620162016 01:48:50
Output for 5.6.17
19-03-2016201620162016 14:29:47
Output for 5.6.16
28-03-2016201620162016 00:10:47
Output for 5.6.15
29-03-2016201620162016 01:15:32
Output for 5.6.14
02-04-2016201620162016 03:34:49
Output for 5.6.13
15-04-2016201620162016 07:29:11
Output for 5.6.12
19-04-2016201620162016 21:16:37
Output for 5.6.11
23-04-2016201620162016 04:19:02
Output for 5.6.10
25-04-2016201620162016 06:03:41
Output for 5.6.9
27-04-2016201620162016 11:00:59
Output for 5.6.8
29-04-2016201620162016 19:10:31
Output for 5.5.35
22-05-2016201620162016 09:20:55
Output for 5.5.34
11-04-2016201620162016 00:19:51
Output for 5.5.33
08-03-2016201620162016 20:41:11
Output for 5.5.32
17-03-2016201620162016 03:23:25
Output for 5.5.31
20-03-2016201620162016 17:15:20
Output for 5.5.30
01-04-2016201620162016 03:12:10
Output for 5.5.29
16-04-2016201620162016 21:35:57
Output for 5.5.28
21-04-2016201620162016 00:31:30
Output for 5.5.27
22-04-2016201620162016 02:50:11
Output for 5.5.26
26-04-2016201620162016 08:29:50
Output for 5.5.25
28-04-2016201620162016 14:48:41
Output for 5.5.24
23-05-2016201620162016 22:09:36
Output for 5.4.45
21-09-2015201520152015 14:29:18
Output for 5.4.44
21-09-2015201520152015 14:29:00
Output for 5.4.43
21-09-2015201520152015 14:28:39
Output for 5.4.42
21-09-2015201520152015 14:28:31
Output for 5.4.41
21-09-2015201520152015 14:28:23
Output for 5.4.40
21-09-2015201520152015 14:28:14
Output for 5.4.39
21-09-2015201520152015 14:28:07
Output for 5.4.38
15-03-2015201520152015 07:55:40
Output for 5.4.36 - 5.4.37
15-03-2015201520152015 07:55:33
Output for 5.4.34 - 5.4.35
15-03-2015201520152015 07:55:32
Output for 5.4.26 - 5.4.32
29-09-2014201420142014 15:00:45
Output for 5.4.5 - 5.4.25
29-09-2014201420142014 15:00:46
Output for 5.4.0 - 5.4.4
29-09-2014201420142014 15:00:47
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/1kuqd 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/1kuqd on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/1kuqd 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/1kuqd on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/1kuqd 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/1kuqd on line 2 Parse error: parse error, expecting `','' or `';'' in /in/1kuqd on line 2
Process exited with code 255.