Is there a way to deploy only compiled PHP?

Is there a way to compile the PHP source into opcode, and only deploy the opcode? Or in JIT format (since PHP 8) ?

Basically I just want to protect the original source code, and not have to deploy it, in case some server misconfiguration happens (e.g. Apache sending the PHP files as plain-text, rather than invoking PHP-FPM) and then the source code is leaked.