title: Encode or Obfuscate PHP code
body: <p>This topic has been asked a lot here.<br>
  I tried to read some of them, but unluckily i couldn't find the answers.<br>
  I would to create my own version of PHP obfuscator like byterun does.<br>
  For example:  </p>
  
  <pre><code>&lt;?php
  echo "Hello World";
  ?&gt;
  </code></pre>
  
  <p>into:  </p>
  
  <pre><code>&lt;?php $_F=__FILE__;$_X='Pz48P3BocA0KNWNoMiAiSDVsbDIgVzJybGQiOw0KPz4='; 
  eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLC
  cxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GS
  UxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?&gt;
  </code></pre>
  
  <p>I'm not looking for a tools how to create the encoded PHP code. I'm looking for how the process to create or encrypt the PHP code. At least a start point to do my research.<br>
  Any guidance is greatly appreciated.  </p>
  
  <p>Thanks<br>
  Ivan</p>