3v4l.org

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