INSTANCEOF

PHP code

<?php
/*
 * 
 * opcode number: 138
 */
$obj = new A();

if ($obj instanceof A) {
   echo 'A';
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$obj

line#opfetchextreturnoperands
60ZEND_FETCH_CLASS  :0'A'
 1NEW  $1:0
 2DO_FCALL_BY_NAME 0  
 3ASSIGN   !0,$1
84ZEND_FETCH_CLASS  :4'A'
 5ZEND_INSTANCEOF  ~5!0,$4
 6JMPZ   ~5,->9
97ECHO   'A'
108JMP   ->9
119RETURN   1