3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timezones = array( 'UTC' => 'GMT', 'America/Los_Angeles' => 'Los Angeles', 'America/New_York' => 'New York', <br> 'Europe/London' => 'London', <br> 'Europe/Paris' => 'Paris', <br> 'Europe/Moscow' => 'Moscow', 'Asia/Tokyo' => 'Tokyo', 'Australia/Sydney' => 'Sydney'); foreach ($timezones as $timezone => $name) { date_default_timezone_set($timezone); }
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '<', expecting ')' in /in/qVJXN on line 4
Process exited with code 255.