http://www.whak.ca/packer/PHP.htm is a PHP2PHP packer similar in workings to
http://dean.edwards.name/packer/ that is a well known JavaScript2JS Packer. It doesn't take long before compression of sorts will be achieved.
Please let me know of any glitches with this PHP version as I just made it. It is actually JavaScript that generates the PHP code.
Example Code Made by Generator:
$chars=str_split('ÀÄÆÈÊ');
$words=explode('|','seekfreak|tring|http|www|com');
$map='$Ä=\'<a href="Æ://È.À.Ê">Æ://È.À.Ê</a>\';echo($Ä);';
eval(str_replace($chars,$words,$map));
Unpacker/Decompressor/Extractor is Only 70 Bytes!
$x=str_split("");$y=explode("|","");$z='';eval(str_replace($x,$y,$z));
Handy Uses For This Tool:
-packing and escaping HTML with embedded CSS, JavaScript (just change eval to echo)
-obfuscating your PHP source code
-discovering repeated words
-seeing the basics of almost all compression @ work (search/replace of repetitive words)