I don't think it does; the entire file is parsed before PHP scripts are compiled.
But I can't say I'm an authority; plus, the documentation doesn't seem to indicate, does it?
Copy your original one, and hack together the one you want; then give it a try .... 😃