3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s w');
based on EABlV
Output for 5.6.28, 7.0.20 - 7.2.0
2015-09-17 09:46:31 4
Output for 7.0.6
2016-05-03 07:26:29 2
Output for 7.0.5
2016-04-02 20:25:32 6
Output for 7.0.4
2016-03-10 06:37:48 4
Output for 7.0.3
2016-03-18 07:07:04 5
Output for 7.0.2
2016-03-22 12:39:42 2
Output for 7.0.1
2016-03-23 17:58:09 3
Output for 7.0.0
2016-03-26 19:39:41 6
Output for 5.6.21
2016-05-02 02:44:16 1
Output for 5.6.20
2016-04-09 16:54:41 6
Output for 5.6.19
2016-03-07 08:47:28 1
Output for 5.6.18
2016-03-14 21:34:51 1
Output for 5.6.17
2016-03-19 11:26:24 6
Output for 5.6.16
2016-03-27 21:24:39 0
Output for 5.6.15
2016-03-28 22:18:26 1
Output for 5.6.14
2016-04-02 00:44:31 6
Output for 5.6.13
2016-04-15 04:48:42 5
Output for 5.6.12
2016-04-19 18:22:27 2
Output for 5.6.11
2016-04-23 01:20:40 6
Output for 5.6.10
2016-04-25 03:12:44 1
Output for 5.6.9
2016-04-27 08:10:29 3
Output for 5.6.8
2016-04-29 16:07:24 5
Output for 5.6.7
2016-05-25 09:06:56 3
Output for 5.5.35
2016-05-22 06:21:42 0
Output for 5.5.34
2016-04-10 21:39:51 0
Output for 5.5.33
2016-03-08 17:32:02 2
Output for 5.5.32
2016-03-16 23:41:57 3
Output for 5.5.31
2016-03-20 14:14:31 0
Output for 5.5.30
2016-04-01 00:19:13 5
Output for 5.5.29
2016-04-16 18:53:34 6
Output for 5.5.28
2016-04-20 21:27:47 3
Output for 5.5.27
2016-04-21 23:52:34 4
Output for 5.5.26
2016-04-26 05:38:18 2
Output for 5.5.25
2016-04-28 11:40:56 4
Output for 5.5.24
2016-05-23 18:37:20 1
Output for 5.4.42 - 5.4.45
2015-09-17 09:46:40 4
Output for 5.4.32 - 5.4.41
2015-09-17 09:46:41 4
Output for 5.4.24 - 5.4.31
2015-09-17 09:46:42 4
Output for 5.4.16 - 5.4.23
2015-09-17 09:46:43 4
Output for 5.4.8 - 5.4.15
2015-09-17 09:46:44 4
Output for 5.4.1 - 5.4.7
2015-09-17 09:46:45 4
Output for 5.4.0
2015-09-17 09:46:46 4
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/X0VTF on line 2
Process exited with code 255.