3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function A() { var_dump('A ctor'); } } class B extends A { function B() { var_dump('B ctor'); } } class C extends A { } new A; new B; new C;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jcPin
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $0      'A'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   24     3        NEW                                              $2      'B'
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
   25     6        NEW                                              $4      'C'
          7        DO_FCALL                                      0          
          8        FREE                                                     $4
          9      > RETURN                                                   1

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

End of function a

End of class A.

Class B:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jcPin
function name:  B
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'B+ctor'
          2        DO_ICALL                                                 
   16     3      > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jcPin
function name:  A
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'A+ctor'
          2        DO_ICALL                                                 
    8     3      > RETURN                                                   null

End of function a

End of class B.

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

End of function a

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.54 ms | 1400 KiB | 15 Q