3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); $a = new DateTime('2011-02-02T10:00:00Z'); $a->setTimezone(new DateTimezone('UTC')); echo $a->format('Y-m-d H:i:s') . ' '; $a->setTimezone(new DateTimezone('Europe/London')); echo $a->format('Y-m-d H:i:s') . ' '; $a->setTimezone(new DateTimezone('Europe/Moscow')) echo $a->format('Y-m-d H:i:s');
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/aIvFV on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/aIvFV on line 13
Process exited with code 255.