3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('GMT'); echo (new \DateTime())->format('Y-m-d H:i:s');
based on 1Za0K
Output for 5.6.28, 7.0.20 - 7.2.0
2015-12-09 00:04:47
Output for 7.0.6
2016-05-03 18:13:01
Output for 7.0.5
2016-04-03 06:31:27
Output for 7.0.4
2016-03-10 19:28:56
Output for 7.0.3
2016-03-18 20:51:22
Output for 7.0.2
2016-03-23 03:05:44
Output for 7.0.1
2016-03-24 06:19:27
Output for 7.0.0
2016-03-27 07:13:39
Output for 5.6.21
2016-05-02 13:21:37
Output for 5.6.20
2016-04-10 05:32:56
Output for 5.6.19
2016-03-08 03:41:13
Output for 5.6.18
2016-03-15 12:32:37
Output for 5.6.17
2016-03-20 00:07:03
Output for 5.6.16
2016-03-28 08:02:29
Output for 5.6.15
2016-03-29 08:51:51
Output for 5.6.14
2016-04-14 14:32:57
Output for 5.6.13
2016-04-15 15:13:35
Output for 5.6.12
2016-04-20 05:40:34
Output for 5.6.11
2016-04-24 12:05:57
Output for 5.6.10
2016-04-25 14:10:14
Output for 5.6.9
2016-04-27 19:18:27
Output for 5.6.8
2016-04-30 04:08:24
Output for 5.5.35
2016-05-22 22:25:19
Output for 5.5.34
2016-04-11 07:44:35
Output for 5.5.33
2016-03-09 06:35:59
Output for 5.5.32
2016-03-17 16:27:08
Output for 5.5.31
2016-03-21 03:13:27
Output for 5.5.30
2016-04-01 10:44:11
Output for 5.5.29
2016-04-17 05:31:15
Output for 5.5.28
2016-04-21 08:57:46
Output for 5.5.27
2016-04-22 10:39:02
Output for 5.5.26
2016-04-26 16:50:05
Output for 5.5.25
2016-04-29 00:15:05
Output for 5.5.24
2016-05-24 06:34:42
Output for 5.4.44 - 5.4.45
2015-12-09 00:04:50
Output for 5.4.42 - 5.4.43
2015-12-09 00:04:52
Output for 5.4.40 - 5.4.41
2015-12-09 00:04:53
Output for 5.4.36 - 5.4.39
2015-12-09 00:04:54
Output for 5.4.32 - 5.4.35
2015-12-09 00:04:55
Output for 5.4.26 - 5.4.31
2015-12-09 00:04:56
Output for 5.4.21 - 5.4.25
2015-12-09 00:04:57
Output for 5.4.16 - 5.4.20
2015-12-09 00:04:58
Output for 5.4.10 - 5.4.15
2015-12-09 00:04:59
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/945WA on line 5
Process exited with code 255.