This is kind of clever, but if you have the opcodes, you can reconstruct the source code. This approach just obfuscates the source code. If you have secrets or proprietary information in your source, DO NOT DO THIS!
https://mardikarifqi.medium.com/distribute-php-without-source-code-2ea4295cd6e9