Will PHP code work slower after obfuscation process with OPcache?

61 Views Asked by At

According to this scheme after launch of the code it transforms to opcode (bytecode), stores in OPcache and then execute in Zend VM (Virtual machine). And next launches will not transform code, but use stored bytecode.

enter image description here

When I obfuscate code, I expect, that first launch can be slower (because of additional tokenization of the code and transforming it to bytecode), but next launch I expect should be as fast as original code.

But, real test shows me that obfuscate code works slower than original code. So my question: is bytecode from raw php and bytecode from obfuscated code not the same, so they work differently?

0

There are 0 best solutions below