3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class myBaseClass { abstract protected function doSomething(); function threeDots() { return '...'; } } class myClassA extends myBaseClass { public function doSomething() { echo $this->threeDots(); } } $a = new myClassA(); $a->doSomething();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJAfZ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'myClassA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3        INIT_METHOD_CALL                                         !0, 'doSomething'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function dosomething

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

End of function threedots

End of class myBaseClass.

Class myClassA:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJAfZ
function name:  doSomething
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_METHOD_CALL                                         'threeDots'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
    7     3      > RETURN                                                   null

End of function dosomething

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

End of function threedots

End of class myClassA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1395 KiB | 13 Q