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.1.20, 7.2.6
Fatal error: Uncaught Error: Call to undefined function jdtogregorian() in /in/lDkcr:3 Stack trace: #0 {main} thrown in /in/lDkcr on line 3
Process exited with code 255.
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