3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(jdtogregorian(2457330)); echo $date->format(RFC2822);
based on Qs7QQ
Output for 7.2.0
Warning: Use of undefined constant RFC2822 - assumed 'RFC2822' (this will throw an Error in a future version of PHP) in /in/lDkcr on line 4 RNovemberC2822
Output for 5.3.19 - 7.1.10
Notice: Use of undefined constant RFC2822 - assumed 'RFC2822' in /in/lDkcr on line 4 RNovemberC2822