3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B extends A { public static function ab() { var_dump(self::class, static::class, parent::class); } public static function abc() { var_dump(self::class, static::class, parent::class); } } class C extends B { } $c = new B; C::ab(); $c->abc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FIKIR
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_STATIC_METHOD_CALL                                  'C', 'ab'
          4        DO_FCALL                                      0          
   27     5        INIT_METHOD_CALL                                         !0, 'abc'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function ab:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FIKIR
function name:  ab
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'B'
          2        FETCH_CLASS_NAME                                 ~0      
          3        SEND_VAL                                                 ~0
          4        SEND_VAL                                                 'A'
          5        DO_ICALL                                                 
   12     6      > RETURN                                                   null

End of function ab

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

End of function abc

End of class B.

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

End of function ab

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

End of function abc

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.88 ms | 1400 KiB | 15 Q