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(12, 10, 10));
based on 5rrCp
Output for 5.5.24 - 7.1.10
bool(false)
Output for 5.4.2 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/6ElvY on line 3
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/6ElvY on line 3
Process exited with code 255.