3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime = new \DateTime(); $datetime->setTimezone('Europe\London'); echo $datetime->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.20 - 7.2.0
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:22
Output for 7.0.6
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-05-03 09:21:25
Output for 7.0.5
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-02 22:14:29
Output for 7.0.4
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-10 08:43:14
Output for 7.0.3
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-18 09:19:52
Output for 7.0.2
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-22 15:13:36
Output for 7.0.1
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-23 20:01:09
Output for 7.0.0
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-26 21:34:42
Output for 5.6.21
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-05-02 04:42:25
Output for 5.6.20
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-09 21:10:34
Output for 5.6.19
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-07 16:51:48
Output for 5.6.18
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-15 00:44:46
Output for 5.6.17
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-19 13:36:08
Output for 5.6.16
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-27 23:20:07
Output for 5.6.15
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-29 00:13:32
Output for 5.6.14
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-02 02:46:51
Output for 5.6.13
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-15 06:41:18
Output for 5.6.12
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-19 20:24:08
Output for 5.6.11
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-23 03:29:07
Output for 5.6.10
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-25 05:12:25
Output for 5.6.9
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-27 10:10:22
Output for 5.6.8
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-29 18:14:45
Output for 5.5.35
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-05-22 08:26:56
Output for 5.5.34
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-10 23:31:23
Output for 5.5.33
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-08 19:48:02
Output for 5.5.32
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-17 02:28:47
Output for 5.5.31
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-03-20 16:22:01
Output for 5.5.30
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-01 02:21:01
Output for 5.5.29
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-16 20:46:15
Output for 5.5.28
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-20 23:29:49
Output for 5.5.27
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-22 01:59:03
Output for 5.5.26
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-26 07:39:23
Output for 5.5.25
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-04-28 13:56:25
Output for 5.5.24
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2016-05-23 20:59:24
Output for 5.4.40 - 5.4.45
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:31
Output for 5.4.32 - 5.4.39
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:32
Output for 5.4.25 - 5.4.31
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:33
Output for 5.4.18 - 5.4.24
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:34
Output for 5.4.11 - 5.4.17
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:35
Output for 5.4.8 - 5.4.10
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-05 21:13:36
Output for 5.4.7
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 01:53:48
Output for 5.4.6
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 03:22:27
Output for 5.4.5
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 04:52:49
Output for 5.4.4
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 06:28:41
Output for 5.4.3
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 08:10:15
Output for 5.4.2
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-27 09:55:40
Output for 5.3.29
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-31 05:39:30
Output for 5.3.28
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-31 07:47:42
Output for 5.3.27
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-10-31 09:55:42
Output for 5.3.26
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 08:52:05
Output for 5.3.25
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 10:34:35
Output for 5.3.24
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 11:47:19
Output for 5.3.23
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 13:17:02
Output for 5.3.22
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 14:48:09
Output for 5.3.21
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 15:55:16
Output for 5.3.20
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 16:53:44
Output for 5.3.19
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 18:20:44
Output for 5.3.18
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given in /in/oXf8e on line 4 2015-11-02 19:11:13