You can test yakpro-po online :Enter your php code in the input area, and the click on the"Obfuscate" buttton.
Many other obfuscation options are available when you download the product on GitHub.
( Please star it if you like it... )
Note: This tool has been written in order to obfuscate pure php sources.
the source code to obfuscate must start with <?php and end with ?>
It is not intended to be used with html and embeded php inside (you may try to deactivate statements shuffling...).
You can still embed html within php using the echo <<<END ... END; syntax!