INIT_METHOD_CALL

PHP code

<?php
/*
 * Prepare for a method call.  Followed by DO_FCALL.
 * opcode number: 112
 */
class A {
  var $num;
    function incrementNum(){
    $num++;
  }
}

$obj = new A();
$obj->incrementNum();

?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$obj

line#opfetchextreturnoperands
60NOP    
131ZEND_FETCH_CLASS  :1'A'
 2NEW  $2:1
 3DO_FCALL_BY_NAME 0  
 4ASSIGN   !0,$2
145ZEND_INIT_METHOD_CALL   !0,'incrementNum'
 6DO_FCALL_BY_NAME 0  
167RETURN   1

Function name: incrementNum

Compiled variables: !0=$num

line#opfetchextreturnoperands
90POST_INC  ~0!0
 1FREE   ~0
102RETURN   null