3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); foreach (['CEST', 'CET', 'Europe/Amsterdam'] as $tzIdentifier) { $tz = new DateTimeZone($tzIdentifier); var_dump([$tzIdentifier, $tz->getName(), $tz->getOffset(new DateTime('2014-05-19 11:30:00'), $tz->getLocation()]); }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected ']' in /in/MSLEV on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/MSLEV on line 5
Process exited with code 255.