Well that is because your syntax is wrong.
Why you want to hardcode it into php? why not creating a css class and declare your background image in your css file? It's clean and work fine, do the same. Inline stylings should be avoided as far a possible.
I installed assets plugin and added custom css class. Now it is working perfectly. Thank you for the suggestion.