toffler Posted September 12, 2008 Share Posted September 12, 2008 Hi, Can anyone please clearify the difference between php opcode and php bytecode? Is it php text -> parsing -> tokens -> opcode -> php engine -> bytecode -> php engine interpretation -> machine code -> execution by hardware or is it (I guess) different? Thanks, Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 Isn't opcode much closer to machine code? Quote Link to comment Share on other sites More sharing options...
toffler Posted September 13, 2008 Author Share Posted September 13, 2008 I don't know, that's why i'm asking somebody who knows the whole process... Quote Link to comment Share on other sites More sharing options...
448191 Posted September 13, 2008 Share Posted September 13, 2008 AFAIK, bytecode has no role in executing PHP. Try this link for more explanation: http://blog.libssh2.org/index.php?/archives/92-Understanding-Opcodes.html Quote Link to comment Share on other sites More sharing options...
toffler Posted September 14, 2008 Author Share Posted September 14, 2008 Yes, I read that one. But on the internet lots of people says something about php compiled codes and php bytecodes so I guess they present somewhere along that sequence I mentioned in the first post... Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 14, 2008 Share Posted September 14, 2008 The tokenized output from the parser is bytecode/opcode. Php parses the source and produces the tokenized form of the script. This is then interpreted during the execution phase. The value of a token is the bytecode/opcode value that represent what action to perform. Quote Link to comment Share on other sites More sharing options...
toffler Posted September 14, 2008 Author Share Posted September 14, 2008 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.