I don't think immigration laws would permit that. For one, you couldn't "just move" to the US like that.
Within the EU it could become an interesting problem if some countries did this and others didn't. I suspect that if anyone were to try this there'll be some limitations at first, like you have to have citizenship, or prove legal residency for longer than "since the past few minutes".