3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { static function b(); } class A implements I { static function b() { echo "Hi"; } } class C implements I { static function b() { echo "Bye"; } } A::b(); C::b(); A::b(); C::b();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jineq
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'a'
   13     1        DECLARE_CLASS                                            'c'
   19     2        INIT_STATIC_METHOD_CALL                                  'A', 'b'
          3        DO_FCALL                                      0          
   20     4        INIT_STATIC_METHOD_CALL                                  'C', 'b'
          5        DO_FCALL                                      0          
   21     6        INIT_STATIC_METHOD_CALL                                  'A', 'b'
          7        DO_FCALL                                      0          
   22     8        INIT_STATIC_METHOD_CALL                                  'C', 'b'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function b

End of class I.

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

End of function b

End of class A.

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

End of function b

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.92 ms | 1398 KiB | 13 Q