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', <br> 'Asia/Tokyo' => 'Tokyo', <br> 'Australia/Sydney' => 'Sydney',<br>); <br>foreach ($timezones as $timezone => $name) { <br> date_default_timezone_set($timezone); <br>}
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '=', expecting ')' in /in/5Tbg2 on line 2
Process exited with code 255.