3v4l.org

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