3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateUs = new \DateTimeImmutable('2015-10-20 00:00', new \DateTimeZone('America/New_York')); $dateE = new \DateTimeImmutable('2015-10-20 00:00', new \DateTimeZone('Europe/Prague')); var_dump($dateUs->format('Y-m-d G:i:s e') === $dateEu->format('Y-m-d G:i:s e'));
based on BR1Cq
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: dateEu in /in/E5nj6 on line 6 Fatal error: Uncaught Error: Call to a member function format() on null in /in/E5nj6:6 Stack trace: #0 {main} thrown in /in/E5nj6 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: dateEu in /in/E5nj6 on line 6 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/E5nj6:6 Stack trace: #0 {main} thrown in /in/E5nj6 on line 6
Process exited with code 255.
Output for 5.6.7 - 5.6.28
Notice: Undefined variable: dateEu in /in/E5nj6 on line 6 Fatal error: Call to a member function format() on null in /in/E5nj6 on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.35
Notice: Undefined variable: dateEu in /in/E5nj6 on line 6 Fatal error: Call to a member function format() on a non-object in /in/E5nj6 on line 6
Process exited with code 255.
Output for 5.3.19 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/E5nj6 on line 3
Process exited with code 255.