3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new DateTime("2018-01-02"); $y = new Date(); $y->setDate(date("Y"), date("m"), $x->format("d")); echo $y->format("d.m.Y");
Output for 7.3.0rc3
Fatal error: Uncaught Error: Class 'Date' not found in /in/vqfli:4 Stack trace: #0 {main} thrown in /in/vqfli on line 4
Process exited with code 255.