3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = (new DateTimeImmutable('today'))->setTimeZone(new DateTimeZone('UTC')); $y = (new DateTimeImmutable('today'))->setTimeZone(new DateTimeZone('Europe/Rome')); var_dump($x->setTime(10, 10, 10) == $y->setTime(8, 10, 10));
based on B1iQ4
Output for 5.5.0 - 7.3.1
bool(false)
Output for 5.4.0 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/5rrCp on line 3
Process exited with code 255.