Global variable value changes mysteriously between initialization and setup()

It worked

Which worked, and how can you be sure?