Ruby could be obfuscated by compiling to a jar using JRuby. Presumably something similar could be done with Python and Jython, and PHP can be compiled into C++ using Facebook's Hiphop compiler they open-sourced.
Why it is irrelevant? I want to sell my application via AWS so users can deploy my AWS image with my application by I want to protect my IP. How to do it?