basic approach to build a JavaCopiler using PHP