First Step on building PHP-GTK suitable for Desktop is hiding the code. Plenty of options out there.

APC (Advanced PHP Cache included code to do something similar) - so bcompiler was born!