3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((new \DateTime('now', new \DateTimeZone('Europe/London')))->format(DATE_RFC2822));
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
string(31) "Thu, 07 Aug 2014 11:35:14 +0100"
Output for 7.0.6
string(31) "Tue, 03 May 2016 08:42:35 +0100"
Output for 7.0.5
string(31) "Sat, 02 Apr 2016 21:34:45 +0100"
Output for 7.0.4
string(31) "Thu, 10 Mar 2016 08:07:11 +0000"
Output for 7.0.3
string(31) "Fri, 18 Mar 2016 08:44:18 +0000"
Output for 7.0.2
string(31) "Tue, 22 Mar 2016 14:38:03 +0000"
Output for 7.0.1
string(31) "Wed, 23 Mar 2016 19:23:23 +0000"
Output for 7.0.0
string(31) "Sat, 26 Mar 2016 20:56:00 +0000"
Output for 5.6.21
string(31) "Mon, 02 May 2016 04:04:14 +0100"
Output for 5.6.20
string(31) "Sat, 09 Apr 2016 20:31:32 +0100"
Output for 5.6.19
string(31) "Mon, 07 Mar 2016 16:15:15 +0000"
Output for 5.6.18
string(31) "Tue, 15 Mar 2016 00:09:27 +0000"
Output for 5.6.17
string(31) "Sat, 19 Mar 2016 12:59:50 +0000"
Output for 5.6.16
string(31) "Sun, 27 Mar 2016 22:41:22 +0100"
Output for 5.6.15
string(31) "Mon, 28 Mar 2016 23:46:34 +0100"
Output for 5.6.14
string(31) "Sat, 02 Apr 2016 02:07:28 +0100"
Output for 5.6.13
string(31) "Fri, 15 Apr 2016 06:01:41 +0100"
Output for 5.6.12
string(31) "Tue, 19 Apr 2016 19:46:15 +0100"
Output for 5.6.11
string(31) "Sat, 23 Apr 2016 02:50:19 +0100"
Output for 5.6.10
string(31) "Mon, 25 Apr 2016 04:33:51 +0100"
Output for 5.6.9
string(31) "Wed, 27 Apr 2016 09:32:03 +0100"
Output for 5.6.8
string(31) "Fri, 29 Apr 2016 17:36:46 +0100"
Output for 5.5.35
string(31) "Sun, 22 May 2016 07:47:29 +0100"
Output for 5.5.34
string(31) "Sun, 10 Apr 2016 22:51:50 +0100"
Output for 5.5.33
string(31) "Tue, 08 Mar 2016 19:12:14 +0000"
Output for 5.5.32
string(31) "Thu, 17 Mar 2016 01:52:36 +0000"
Output for 5.5.31
string(31) "Sun, 20 Mar 2016 15:45:39 +0000"
Output for 5.5.30
string(31) "Fri, 01 Apr 2016 01:42:13 +0100"
Output for 5.5.29
string(31) "Sat, 16 Apr 2016 20:07:10 +0100"
Output for 5.5.28
string(31) "Wed, 20 Apr 2016 22:51:26 +0100"
Output for 5.5.27
string(31) "Fri, 22 Apr 2016 01:21:04 +0100"
Output for 5.5.26
string(31) "Tue, 26 Apr 2016 07:00:52 +0100"
Output for 5.5.25
string(31) "Thu, 28 Apr 2016 13:18:44 +0100"
Output for 5.5.24
string(31) "Mon, 23 May 2016 20:39:54 +0100"
Output for 5.4.45
string(31) "Mon, 21 Sep 2015 11:12:11 +0100"
Output for 5.4.44
string(31) "Mon, 21 Sep 2015 11:12:05 +0100"
Output for 5.4.43
string(31) "Mon, 21 Sep 2015 11:11:58 +0100"
Output for 5.4.42
string(31) "Mon, 21 Sep 2015 11:11:55 +0100"
Output for 5.4.41
string(31) "Mon, 21 Sep 2015 11:11:52 +0100"
Output for 5.4.40
string(31) "Mon, 21 Sep 2015 11:11:49 +0100"
Output for 5.4.39
string(31) "Mon, 21 Sep 2015 11:11:46 +0100"
Output for 5.4.38
string(31) "Thu, 05 Mar 2015 16:01:52 +0000"
Output for 5.4.35 - 5.4.37
string(31) "Thu, 05 Mar 2015 16:01:45 +0000"
Output for 5.4.34
string(31) "Thu, 05 Mar 2015 16:01:44 +0000"
Output for 5.4.32
string(31) "Thu, 28 Aug 2014 10:23:00 +0100"
Output for 5.4.20 - 5.4.31
string(31) "Thu, 07 Aug 2014 11:35:18 +0100"
Output for 5.4.0 - 5.4.19
string(31) "Thu, 07 Aug 2014 11:35:19 +0100"
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/PuQGe on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/PuQGe on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/PuQGe on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/PuQGe on line 1 Parse error: parse error in /in/PuQGe on line 1
Process exited with code 255.

preferences:
249.52 ms | 402 KiB | 328 Q