3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('+1 month 2 days'); echo $date->format(DateTime::RFC2822);
based on ShhDj
Output for 5.6.28, 7.0.20 - 7.2.0
Tue, 24 Nov 2015 18:32:44 +0100
Output for 7.0.6
Sun, 05 Jun 2016 01:29:28 +0200
Output for 7.0.5
Wed, 04 May 2016 14:48:33 +0200
Output for 7.0.4
Mon, 11 Apr 2016 23:51:13 +0200
Output for 7.0.3
Wed, 20 Apr 2016 00:18:47 +0200
Output for 7.0.2
Sat, 23 Apr 2016 10:57:40 +0200
Output for 7.0.1
Mon, 25 Apr 2016 11:08:56 +0200
Output for 7.0.0
Thu, 28 Apr 2016 13:43:46 +0200
Output for 5.6.21
Fri, 03 Jun 2016 20:33:48 +0200
Output for 5.6.20
Wed, 11 May 2016 10:03:32 +0200
Output for 5.6.19
Fri, 08 Apr 2016 21:47:21 +0200
Output for 5.6.18
Sat, 16 Apr 2016 09:47:40 +0200
Output for 5.6.17
Thu, 21 Apr 2016 04:51:22 +0200
Output for 5.6.16
Fri, 29 Apr 2016 15:28:23 +0200
Output for 5.6.15
Sat, 30 Apr 2016 16:23:01 +0200
Output for 5.6.14
Tue, 03 May 2016 19:04:05 +0200
Output for 5.6.13
Mon, 16 May 2016 22:51:17 +0200
Output for 5.6.12
Sat, 21 May 2016 11:57:30 +0200
Output for 5.6.11
Tue, 24 May 2016 19:14:37 +0200
Output for 5.6.10
Thu, 26 May 2016 20:53:42 +0200
Output for 5.6.9
Sun, 29 May 2016 01:59:58 +0200
Output for 5.6.8
Tue, 31 May 2016 09:33:54 +0200
Output for 5.6.7
Sun, 26 Jun 2016 19:51:00 +0200
Output for 5.5.35
Thu, 23 Jun 2016 23:47:35 +0200
Output for 5.5.34
Thu, 12 May 2016 15:57:28 +0200
Output for 5.5.33
Sun, 10 Apr 2016 11:05:57 +0200
Output for 5.5.32
Sun, 17 Apr 2016 20:03:34 +0200
Output for 5.5.31
Fri, 22 Apr 2016 07:44:56 +0200
Output for 5.5.30
Tue, 03 May 2016 18:26:01 +0200
Output for 5.5.29
Wed, 18 May 2016 12:56:13 +0200
Output for 5.5.28
Sun, 22 May 2016 15:09:41 +0200
Output for 5.5.27
Mon, 23 May 2016 17:46:08 +0200
Output for 5.5.26
Fri, 27 May 2016 23:10:12 +0200
Output for 5.5.25
Mon, 30 May 2016 05:17:08 +0200
Output for 5.5.24
Wed, 01 Jun 2016 12:53:01 +0200
Output for 5.4.45
Tue, 24 Nov 2015 18:32:54 +0100
Output for 5.4.37 - 5.4.44
Tue, 24 Nov 2015 18:32:55 +0100
Output for 5.4.29 - 5.4.36
Tue, 24 Nov 2015 18:32:56 +0100
Output for 5.4.22 - 5.4.28
Tue, 24 Nov 2015 18:32:57 +0100
Output for 5.4.15 - 5.4.21
Tue, 24 Nov 2015 18:32:58 +0100
Output for 5.4.7 - 5.4.14
Tue, 24 Nov 2015 18:32:59 +0100
Output for 5.4.0 - 5.4.6
Tue, 24 Nov 2015 18:33:00 +0100
Output for 5.3.23 - 5.3.29
Tue, 24 Nov 2015 18:33:01 +0100
Output for 5.3.19 - 5.3.22
Tue, 24 Nov 2015 18:33:02 +0100