It'll always be possible to reproduce source code; even compiled code must follow rules (otherwise how would a processor understand it!) and so it can be reverse engineered.
In this case you're using an interpreted scripting language and merely obfuscating it... even easier to break
This is why, as you mentioned, many people provide hosted services. This allows the provider to have full control of licensing and ensures nobody gets to see the source.