3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $d = date_create('now', null); echo $d->format(DateTime::RFC2822) . "\n";
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 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
Sun, 26 Oct 2014 01:49:06 +0000
Output for 7.0.6
Tue, 03 May 2016 08:34:49 +0000
Output for 7.0.5
Sat, 02 Apr 2016 21:19:53 +0000
Output for 7.0.4
Thu, 10 Mar 2016 08:57:27 +0000
Output for 7.0.3
Fri, 18 Mar 2016 09:38:04 +0000
Output for 7.0.2
Tue, 22 Mar 2016 15:36:21 +0000
Output for 7.0.1
Wed, 23 Mar 2016 20:10:42 +0000
Output for 7.0.0
Sat, 26 Mar 2016 21:42:47 +0000
Output for 5.6.21
Mon, 02 May 2016 03:53:54 +0000
Output for 5.6.20
Sat, 09 Apr 2016 20:19:50 +0000
Output for 5.6.19
Mon, 07 Mar 2016 17:05:46 +0000
Output for 5.6.18
Tue, 15 Mar 2016 01:12:02 +0000
Output for 5.6.17
Sat, 19 Mar 2016 13:51:13 +0000
Output for 5.6.16
Sun, 27 Mar 2016 22:40:11 +0000
Output for 5.6.15
Mon, 28 Mar 2016 23:35:18 +0000
Output for 5.6.14
Sat, 02 Apr 2016 01:53:52 +0000
Output for 5.6.13
Fri, 15 Apr 2016 05:48:41 +0000
Output for 5.6.12
Tue, 19 Apr 2016 19:37:40 +0000
Output for 5.6.11
Sat, 23 Apr 2016 02:39:20 +0000
Output for 5.6.10
Mon, 25 Apr 2016 04:24:08 +0000
Output for 5.6.9
Wed, 27 Apr 2016 09:23:25 +0000
Output for 5.6.8
Fri, 29 Apr 2016 17:31:59 +0000
Output for 5.5.35
Sun, 22 May 2016 07:41:57 +0000
Output for 5.5.34
Sun, 10 Apr 2016 22:41:37 +0000
Output for 5.5.33
Tue, 08 Mar 2016 20:01:24 +0000
Output for 5.5.32
Thu, 17 Mar 2016 02:45:25 +0000
Output for 5.5.31
Sun, 20 Mar 2016 16:36:09 +0000
Output for 5.5.30
Fri, 01 Apr 2016 01:32:01 +0000
Output for 5.5.29
Sat, 16 Apr 2016 19:56:04 +0000
Output for 5.5.28
Wed, 20 Apr 2016 22:54:14 +0000
Output for 5.5.27
Fri, 22 Apr 2016 01:11:34 +0000
Output for 5.5.26
Tue, 26 Apr 2016 06:50:57 +0000
Output for 5.5.25
Thu, 28 Apr 2016 13:15:45 +0000
Output for 5.5.24
Mon, 23 May 2016 20:29:54 +0000
Output for 5.4.45
Sun, 06 Sep 2015 20:28:07 +0000
Output for 5.4.44
Sun, 06 Sep 2015 20:28:04 +0000
Output for 5.4.43
Sun, 06 Sep 2015 20:28:01 +0000
Output for 5.4.42
Thu, 09 Jul 2015 15:22:21 +0000
Output for 5.4.41
Thu, 09 Jul 2015 15:22:19 +0000
Output for 5.4.39 - 5.4.40
Thu, 09 Jul 2015 15:22:14 +0000
Output for 5.4.38
Thu, 09 Jul 2015 15:22:13 +0000
Output for 5.4.35 - 5.4.37
Thu, 09 Jul 2015 15:22:10 +0000
Output for 5.4.21 - 5.4.34
Sun, 26 Oct 2014 00:49:11 +0000
Output for 5.4.0 - 5.4.20
Sun, 26 Oct 2014 00:49:12 +0000
Output for 5.3.11 - 5.3.29
Sun, 26 Oct 2014 00:49:13 +0000
Output for 5.3.6 - 5.3.10
Sun, 26 Oct 2014 00:49:14 +0000
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.5
Warning: date_create() expects parameter 2 to be DateTimeZone, null given in /in/MEmLL on line 3 Fatal error: Call to a member function format() on a non-object in /in/MEmLL on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/MEmLL on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/MEmLL on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/MEmLL on line 4
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
Parse error: parse error, unexpected ')', expecting '(' in /in/MEmLL on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/MEmLL on line 4
Process exited with code 255.

preferences:
226.39 ms | 401 KiB | 312 Q