How do I set, and return, a value in Views PHP?
It works for me. I put the information you said in a PHP field and it printed out as expected. I imagine it's a caching issue or something else about your site that is causing the issue.