3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date(DateTime::RFC2822)); var_dump(gmdate('D, d M Y H:i:s'));
Output for 7.0.12 - 7.1.0
string(31) "Wed, 02 Mar 2016 11:08:34 +0100" string(25) "Wed, 02 Mar 2016 10:08:34"
Output for 5.2.0 - 5.3.0, 5.3.2 - 7.0.8
string(31) "Tue, 14 Jan 2014 19:47:18 +0100" string(25) "Tue, 14 Jan 2014 18:47:18"
Output for 5.3.1
string(31) "Tue, 14 Jan 2014 19:47:17 +0100" string(25) "Tue, 14 Jan 2014 18:47:17"
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/HJfEj on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/HJfEj on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/HJfEj on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/HJfEj on line 3
Process exited with code 255.