3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime('today', new \DateTimeZone('Europe/Paris')); $date->setTime(10,0); $date2 = clone($date); var_dump($date, $date2->setTimeZone(new \DateTimeZone('Europe/London')), $date2->getDate());
Output for 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined method DateTime::getDate() in /in/SXFa1:8 Stack trace: #0 {main} thrown in /in/SXFa1 on line 8
Process exited with code 255.