How can I insert PHP code in Views?
Yes you can add php code using views_php

Add field in views global

Then add code you need is in Output code sector. I thing here is the problem for you. you add php code to 'Value code'. 

Then look at the preview. it's done!!!!!!