3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i { function test(); } abstract class a implements i { abstract function ii(); } class b extends a { function test(){ echo __CLASS__, __METHOD__; } } $bb = new b(); $bb->ii();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QBEvb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $bb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a'
    4     1        DECLARE_CLASS                                            'b', 'a'
    6     2        NEW                                              $1      'b'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5        INIT_METHOD_CALL                                         !0, 'ii'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function test

End of class i.

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

End of function ii

End of class a.

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

End of function test

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.32 ms | 1394 KiB | 13 Q