3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(DateTime::ATOM); var_dump(DateTime::COOKIE); var_dump(DateTime::ISO8601); var_dump(DateTime::RFC822); var_dump(DateTime::RFC850); var_dump(DateTime::RFC1036); var_dump(DateTime::RFC1123); var_dump(DateTime::RFC2822); var_dump(DateTime::RFC3339); var_dump(DateTime::RSS); var_dump(DateTime::W3C);
Output for 5.4.24 - 7.1.0
string(13) "Y-m-d\TH:i:sP" string(16) "l, d-M-Y H:i:s T" string(13) "Y-m-d\TH:i:sO" string(16) "D, d M y H:i:s O" string(16) "l, d-M-y H:i:s T" string(16) "D, d M y H:i:s O" string(16) "D, d M Y H:i:s O" string(16) "D, d M Y H:i:s O" string(13) "Y-m-d\TH:i:sP" string(16) "D, d M Y H:i:s O" string(13) "Y-m-d\TH:i:sP"
Output for 5.2.0 - 5.4.23
string(13) "Y-m-d\TH:i:sP" string(16) "l, d-M-y H:i:s T" string(13) "Y-m-d\TH:i:sO" string(16) "D, d M y H:i:s O" string(16) "l, d-M-y H:i:s T" string(16) "D, d M y H:i:s O" string(16) "D, d M Y H:i:s O" string(16) "D, d M Y H:i:s O" string(13) "Y-m-d\TH:i:sP" string(16) "D, d M Y H:i:s O" string(13) "Y-m-d\TH:i:sP"
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/KNB1k on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/KNB1k 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/KNB1k on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/KNB1k on line 3
Process exited with code 255.