3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function bla() { return "A"; } public function printIt() { echo $this->bla(); } } class B extends A { public function bla() { return "B"; } } $a = new A(); $b = new B(); $a->printIt(); $b->printIt();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGW0C
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   25     3        NEW                                              $5      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   27     6        INIT_METHOD_CALL                                         !0, 'printIt'
          7        DO_FCALL                                      0          
   28     8        INIT_METHOD_CALL                                         !1, 'printIt'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A:
Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGW0C
function name:  bla
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'A'
    8     1*     > RETURN                                                   null

End of function bla

Function printit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGW0C
function name:  printIt
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_METHOD_CALL                                         'bla'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   13     3      > RETURN                                                   null

End of function printit

End of class A.

Class B:
Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGW0C
function name:  bla
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   'B'
   21     1*     > RETURN                                                   null

End of function bla

Function printit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGW0C
function name:  printIt
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_METHOD_CALL                                         'bla'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   13     3      > RETURN                                                   null

End of function printit

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1395 KiB | 13 Q