It would really help if you could format your post properly using code blocks as it is expected on every technical forum. Please, follow the below guide:
Regarding the issue:
You just echo-d a string: “VERSION_CODENAME”. Of course that doesn’t exist. It is supposed to be a variable.$VERSION_CODENAME