3v4l.org

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