Added test class, fixed opcode calculator, fixed php 5.3 support