3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new DateTimeImmutable(); $y = new DateTimeImmutable(); $y = $y->add(new DateInterval("P1D")); var_dump((true ? $x : $y)->format('T'));
based on AudHt
Output for 7.0.1 - 7.0.4, 7.0.20 - 7.2.0
string(3) "CET"
Output for 7.0.0, 7.0.5 - 7.0.6
string(4) "CEST"
Output for 5.4.9 - 5.6.28
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/65Lgb on line 8
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/65Lgb on line 8
Process exited with code 255.