Byte-Code vs Op-code

Bytecode on the other hand uses binary representation and usually useful for JIT virtual machines. The PHP compiler usually compiles into Assembler style Opcodes. Calling PHP opcodes bytecode is incorrect as byte-code is binary. The confusing part is within the short form of opcode, the longer form, which is just operation code can be used to describe any instruction. Bytecode uses opcode representation, but the reverse is not correct.

Opcode – PHP
Byte-code – Java

Thank you.

PS: Hopefully this wasn’t completely half-baked. I’m sure someone will tell me otherwise.

Possibly Related Posts:


Comments are closed.