3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I1 { public function F1(); public static function FS2(); public static function FS3(); } abstract class C1 implements I1 { public function __construct() { static::F1(); } public static function FS2() { static::FS3(); } } abstract class C2 extends C1 { public function F1() { echo __CLASS__; } public final static function FS3() { echo __CLASS__; } } final class C3 extends C2 { public function __construct() { parent::__construct(); self::FS2(); } public function F1() { echo __CLASS__; } } class C4 extends C1 { public function F1() { } } //$_class = new C2(); C4::FS2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tMZ9
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'c1'
   26     1        DECLARE_CLASS                                            'c2', 'c1'
   41     2        DECLARE_CLASS                                            'c3', 'c2'
   56     3        DECLARE_CLASS                                            'c4', 'c1'
   67     4        INIT_STATIC_METHOD_CALL                                  'C4', 'FS2'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function f1

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

End of function fs2

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

End of function fs3

End of class I1.

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

End of function __construct

Function fs2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tMZ9
function name:  FS2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_STATIC_METHOD_CALL                                  'FS3'
          1        DO_FCALL                                      0          
   22     2      > RETURN                                                   null

End of function fs2

End of class C1.

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

End of function f1

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

End of function fs3

End of class C2.

Class C3:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tMZ9
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   47     2        INIT_STATIC_METHOD_CALL                                  'FS2'
          3        DO_FCALL                                      0          
   48     4      > RETURN                                                   null

End of function __construct

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

End of function f1

End of class C3.

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

End of function f1

End of class C4.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.29 ms | 1399 KiB | 13 Q