3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { const FOO = 'FOO'; } abstract class B implements A { const BAR = 'BAR'; abstract public function test(); } class C extends B { const FOO = 'DOH'; public function test() { echo self::FOO . "\n"; } } (new C)->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KWpIi
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'b'
   13     1        DECLARE_CLASS                                            'c', 'b'
   18     2        NEW                                              $0      'C'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'test'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KWpIi
function name:  test
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function test

End of class B.

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

End of function test

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.76 ms | 1394 KiB | 13 Q