Yes, it depends on your php.ini settings. short_open_tag
has to be On
.
Your code will not work, if short open tags aren't allowed (old servers [< PHP 5.4.0] often don't support it by default). If you'd like to write your code downwards compatible, do not use it.
I got a lot of anoying trouble because of being lazy and using short open tags. ;-)