3v4l.org

run code in 300+ PHP versions simultaneously
<?php class base { public function validate(){ echo 'in base'; } } class second extends base { public function insert(){ $this->validate(); } public function validate(){ echo 'in second'; } } class third extends second { public function insert(){ parent::insert(); } public function validate(){ echo 'in third'; } } $s = new third; echo $s->insert();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/StM7n
function name:  (null)
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'third'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'insert'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

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

End of function validate

End of class base.

Class second:
Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/StM7n
function name:  insert
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'validate'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function insert

Function validate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/StM7n
function name:  validate
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'in+second'
   13     1      > RETURN                                                   null

End of function validate

End of class second.

Class third:
Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/StM7n
function name:  insert
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'insert'
          1        DO_FCALL                                      0          
   18     2      > RETURN                                                   null

End of function insert

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

End of function validate

End of class third.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.06 ms | 1395 KiB | 13 Q