3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('d-m-Y h:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
30-04-2014 02:56:05
Output for 7.0.6
03-05-2016 02:31:52
Output for 7.0.5
02-04-2016 03:48:28
Output for 7.0.4
10-03-2016 01:19:19
Output for 7.0.3
18-03-2016 01:29:30
Output for 7.0.2
21-03-2016 12:04:16
Output for 7.0.1
23-03-2016 12:17:10
Output for 7.0.0
26-03-2016 02:45:29
Output for 5.6.21
01-05-2016 09:34:14
Output for 5.6.20
09-04-2016 11:00:38
Output for 5.6.19
06-03-2016 11:35:48
Output for 5.6.18
14-03-2016 11:52:02
Output for 5.6.17
19-03-2016 05:58:13
Output for 5.6.16
27-03-2016 04:30:27
Output for 5.6.15
28-03-2016 05:24:04
Output for 5.6.14
01-04-2016 08:02:05
Output for 5.6.13
14-04-2016 11:50:11
Output for 5.6.12
19-04-2016 12:59:41
Output for 5.6.11
22-04-2016 08:16:05
Output for 5.6.10
24-04-2016 09:55:49
Output for 5.6.9
27-04-2016 03:05:58
Output for 5.6.8
29-04-2016 10:40:35
Output for 5.6.7
24-05-2016 09:29:18
Output for 5.5.35
22-05-2016 12:56:40
Output for 5.5.34
10-04-2016 04:56:44
Output for 5.5.33
08-03-2016 12:10:34
Output for 5.5.32
16-03-2016 05:52:09
Output for 5.5.31
20-03-2016 08:50:59
Output for 5.5.30
31-03-2016 07:25:39
Output for 5.5.29
16-04-2016 01:57:32
Output for 5.5.28
20-04-2016 04:16:12
Output for 5.5.27
21-04-2016 06:47:01
Output for 5.5.26
26-04-2016 12:14:42
Output for 5.5.25
28-04-2016 06:22:37
Output for 5.5.24
30-04-2016 01:52:50
Output for 5.4.45
20-09-2015 11:21:14
Output for 5.4.44
20-09-2015 11:21:09
Output for 5.4.43
20-09-2015 11:21:04
Output for 5.4.42
20-09-2015 11:21:02
Output for 5.4.41
15-05-2015 04:13:17
Output for 5.4.40
15-05-2015 04:13:12
Output for 5.4.39
15-05-2015 04:13:11
Output for 5.4.38
03-03-2015 12:50:41
Output for 5.4.37
09-02-2015 09:17:19
Output for 5.4.34 - 5.4.36
09-02-2015 09:17:18
Output for 5.4.32
09-09-2014 07:43:36
Output for 5.4.31
09-09-2014 07:43:32
Output for 5.4.30
09-09-2014 07:43:27
Output for 5.4.28 - 5.4.29
09-09-2014 07:43:26
Output for 5.4.19 - 5.4.27
30-04-2014 02:56:06
Output for 5.4.0 - 5.4.18
30-04-2014 02:56:07
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ad8I3 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
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ad8I3 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/ad8I3 on line 2
Process exited with code 255.