DECLARE_INHERITED_CLASS

PHP code

<?php
/*
 * 
 * opcode number: 140
 */
 if($b){
 class Foo {
  public static $my_static = 'foo';
  public function staticValue() {
    return self::$my_static;
  }
 }

 class Bar extends Foo {
  public function fooStatic() {
     echo parent::$my_static;
  }
 }
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$b

line#opfetchextreturnoperands
60JMPZ   !0,->5
71ZEND_DECLARE_CLASS  $0'%00foo%2Fmnt%2Fworkspace%2Fws_phpscripts%2FPHPopcodes%2Fphpsamples%2FDECLARE_INHERITED_CLASS.php0xb7be503b','foo'
142ZEND_FETCH_CLASS  :1'Foo'
 3ZEND_DECLARE_INHERITED_CLASS  $2'%00bar%2Fmnt%2Fworkspace%2Fws_phpscripts%2FPHPopcodes%2Fphpsamples%2FDECLARE_INHERITED_CLASS.php0xb7be50bc','bar'
194JMP   ->5
205RETURN   1

Function name: staticValue

Compiled variables: !0=$my_static

line#opfetchextreturnoperands
100ZEND_FETCH_CLASS    
 1FETCH_Rstaticmember $1'my_static'
 2RETURN   $1
113RETURN   null

Function name: fooStatic

Compiled variables: !0=$my_static

line#opfetchextreturnoperands
160ZEND_FETCH_CLASS  :0 
 1FETCH_Rstaticmember $1'my_static'
 2ECHO   $1
173RETURN   null