3v4l.org

run code in 200+ php & hhvm versions
<?php $date = new DateTime('now', new \DateTimeZone('America/Argentina/ComodRivadavia')); echo $date->format('e'); assert($date->format('e') === 'America/Argentina/ComodRivadavia');
based on pq8OO
Output for hhvm-3.10.1 - 3.22.0, 7.1.15 - 7.1.20, 7.2.3 - 7.2.8
America/Argentina/ComodRivadavia
Output for 7.0.0 - 7.1.14, 7.2.0 - 7.2.2
America/Argentina/ComodRivadavi Warning: assert(): assert($date->format('e') === 'America/Argentina/ComodRivadavia') failed in /in/Y3L1K on line 7
Output for 5.3.0 - 5.6.30
America/Argentina/ComodRivadavi Warning: assert(): Assertion failed in /in/Y3L1K on line 7
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3L1K on line 3 America/Argentina/ComodRivadavi Warning: assert(): Assertion failed in /in/Y3L1K on line 7
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3L1K on line 3 Fatal error: Class 'DateTime' not found in /in/Y3L1K on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3L1K on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/Y3L1K on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3L1K on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/Y3L1K on line 3