3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date1 = date_create("now"); $date2 = date_create($date1->format(DateTime::RFC_2822), new DateTimeZone("UTC"));
based on RoSXa
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Undefined class constant 'RFC_2822' in /in/KEbJP:4 Stack trace: #0 {main} thrown in /in/KEbJP on line 4
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Undefined class constant 'RFC_2822' in /in/KEbJP on line 4
Process exited with code 255.