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
2016-11-23 16:20:59
Output for 7.0.12
2014-04-18 20:27:23
Output for 7.0.6
2016-05-03 03:17:17
Output for 7.0.5
2016-04-02 16:31:25
Output for 7.0.4
2016-03-10 02:09:16
Output for 7.0.3
2016-03-18 02:21:17
Output for 7.0.2
2016-03-21 12:54:27
Output for 7.0.1
2016-03-23 13:07:53
Output for 7.0.0
2016-03-26 15:32:13
Output for hhvm-3.12.0
2016-03-30 08:35:19
Output for hhvm-3.10.0
2016-03-29 21:28:21
Output for 5.6.21
2016-05-01 22:20:07
Output for 5.6.20
2016-04-09 11:44:30
Output for 5.6.19
2016-03-07 00:41:52
Output for 5.6.18
2016-03-14 12:46:57
Output for 5.6.17
2016-03-19 06:50:00
Output for 5.6.16
2016-03-27 17:17:29
Output for 5.6.15
2016-03-28 18:10:13
Output for 5.6.14
2016-04-01 20:46:19
Output for 5.6.13
2016-04-15 00:43:22
Output for 5.6.12
2016-04-19 13:47:20
Output for 5.6.11
2016-04-22 21:04:10
Output for 5.6.10
2016-04-24 22:42:27
Output for 5.6.9
2016-04-27 03:53:58
Output for 5.6.8
2016-04-29 11:36:49
Output for 5.5.35
2016-05-22 01:44:38
Output for 5.5.34
2016-04-10 17:41:33
Output for 5.5.33
2016-03-08 13:00:57
Output for 5.5.32
2016-03-16 18:43:48
Output for 5.5.31
2016-03-20 09:42:04
Output for 5.5.30
2016-03-31 20:11:48
Output for 5.5.29
2016-04-16 14:43:54
Output for 5.5.28
2016-04-20 17:05:03
Output for 5.5.27
2016-04-21 19:33:17
Output for 5.5.26
2016-04-26 01:11:10
Output for 5.5.25
2016-04-28 07:11:51
Output for 5.5.24
2016-04-30 14:37:35
Output for 5.4.44 - 5.4.45
2016-02-19 06:41:40
Output for 5.4.43
2016-02-19 06:41:41
Output for 5.4.41 - 5.4.42
2016-02-19 06:41:42
Output for 5.4.40
2016-02-19 06:41:43
Output for 5.4.38 - 5.4.39
2016-02-19 06:41:44
Output for 5.4.35 - 5.4.37
2016-02-19 06:41:45
Output for 5.4.32 - 5.4.34
2016-02-19 06:41:46
Output for 5.4.28 - 5.4.31
2016-02-19 06:41:47
Output for 5.4.25 - 5.4.27
2016-02-19 06:41:48
Output for 5.4.23 - 5.4.24
2016-02-19 06:41:49
Output for 5.4.19 - 5.4.22
2016-02-19 06:41:50
Output for 5.4.16 - 5.4.18
2016-02-19 06:41:51
Output for 5.4.12 - 5.4.15
2016-02-19 06:41:52
Output for 5.4.9 - 5.4.11
2016-02-19 06:41:53
Output for 5.4.5 - 5.4.8
2016-02-19 06:41:54
Output for 5.4.2 - 5.4.4
2016-02-19 06:41:55
Output for 5.4.0 - 5.4.1
2016-02-19 06:41:56
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ihcUV 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/ihcUV on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ihcUV 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/ihcUV on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ihcUV 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/ihcUV on line 2 Parse error: parse error, expecting `','' or `';'' in /in/ihcUV on line 2
Process exited with code 255.