3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Zend_Config { protected function _hello($param) { echo "Zend_Config says: $param\n"; } } class Zend_Config_Ini extends Zend_Config { public function foo() { $this->_hello('Foo!'); } } $config = new Zend_Config_Ini(); $config->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u75CT
function name:  (null)
number of ops:  6
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Zend_Config_Ini'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Zend_Config:
Function _hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u75CT
function name:  _hello
number of ops:  6
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ROPE_INIT                                     3  ~2      'Zend_Config+says%3A+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
    6     5      > RETURN                                                   null

End of function _hello

End of class Zend_Config.

Class Zend_Config_Ini:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u75CT
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         '_hello'
          1        SEND_VAL_EX                                              'Foo%21'
          2        DO_FCALL                                      0          
   12     3      > RETURN                                                   null

End of function foo

Function _hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u75CT
function name:  _hello
number of ops:  6
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ROPE_INIT                                     3  ~2      'Zend_Config+says%3A+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
    6     5      > RETURN                                                   null

End of function _hello

End of class Zend_Config_Ini.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.8 ms | 1395 KiB | 13 Q