3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new DateTime('now', new DateTimeZone('Australia/Melbourne')))->format('T'));
Output for 5.4.34 - 5.4.45, 5.5.30 - 5.5.33, 5.6.15 - 5.6.19, 5.6.28 - 7.0.4, 7.0.20 - 7.2.0
string(4) "AEDT"
Output for 5.5.24 - 5.5.29, 5.5.34 - 5.6.14, 5.6.20 - 5.6.21, 7.0.5 - 7.0.6
string(4) "AEST"
Output for 5.4.11 - 5.4.32
string(3) "EST"
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/j3tZR on line 3
Process exited with code 255.