3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('today', new DateTimeZone('Europe/Prague')); echo $dt->format('d.m.Y H:i:s').\n; $dt->setTimezone(new DateTimeZone('Pacific/Chatham')); echo $dt->format('d.m.Y H:i:s');
based on 7JKFS
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Error: Undefined constant 'n' in /in/HV2Lk:4 Stack trace: #0 {main} thrown in /in/HV2Lk on line 4
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Undefined constant 'n' in /in/HV2Lk:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Undefined constant 'n' in /in/HV2Lk on line 4
Process exited with code 255.