3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('England/London'); echo (new \DateTime())->format('m-d-Y H:i:s');
based on EJ2iq
Output for 7.0.20 - 7.2.0
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:23
Output for 7.0.6
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 05-21-2016 13:56:22
Output for 7.0.5
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-03-2016 09:52:45
Output for 7.0.4
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-10-2016 22:00:16
Output for 7.0.3
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-18-2016 23:28:38
Output for 7.0.2
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-23-2016 05:42:32
Output for 7.0.1
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-24-2016 08:45:07
Output for 7.0.0
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-27-2016 10:38:03
Output for 5.6.21
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 05-02-2016 16:47:17
Output for 5.6.20
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-10-2016 08:55:09
Output for 5.6.19
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-08-2016 06:10:21
Output for 5.6.18
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-15-2016 15:08:59
Output for 5.6.17
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-20-2016 02:40:59
Output for 5.6.16
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-28-2016 11:27:54
Output for 5.6.15
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-29-2016 12:17:29
Output for 5.6.14
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-14-2016 17:59:53
Output for 5.6.13
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-15-2016 18:38:45
Output for 5.6.12
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-20-2016 09:09:19
Output for 5.6.11
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-24-2016 15:35:17
Output for 5.6.10
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-25-2016 17:41:01
Output for 5.6.9
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-27-2016 23:09:06
Output for 5.6.8
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-30-2016 07:35:34
Output for 5.5.35
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 05-23-2016 02:52:00
Output for 5.5.34
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-11-2016 11:10:03
Output for 5.5.33
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-09-2016 09:15:23
Output for 5.5.32
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-17-2016 19:07:39
Output for 5.5.31
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 03-21-2016 05:53:50
Output for 5.5.30
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-01-2016 14:08:49
Output for 5.5.29
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-17-2016 08:56:42
Output for 5.5.28
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-21-2016 12:28:54
Output for 5.5.27
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-22-2016 14:06:30
Output for 5.5.26
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-26-2016 20:22:28
Output for 5.5.25
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 04-29-2016 03:49:03
Output for 5.5.24
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 05-24-2016 10:20:43
Output for 5.4.44 - 5.4.45
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:26
Output for 5.4.42 - 5.4.43
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:27
Output for 5.4.41
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:28
Output for 5.4.40
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:29
Output for 5.4.37 - 5.4.39
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:30
Output for 5.4.34 - 5.4.36
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:31
Output for 5.4.32
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:32
Output for 5.4.28 - 5.4.31
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:33
Output for 5.4.24 - 5.4.27
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:34
Output for 5.4.21 - 5.4.23
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:35
Output for 5.4.18 - 5.4.20
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:36
Output for 5.4.15 - 5.4.17
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:37
Output for 5.4.12 - 5.4.14
Notice: date_default_timezone_set(): Timezone ID 'England/London' is invalid in /in/KGcpJ on line 2 01-17-2016 22:34:38
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/KGcpJ on line 3
Process exited with code 255.