3v4l.org

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