3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i { function test1(); } abstract class a implements i { abstract function test1(); } class b extends a { function test1(){ 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/AKB8k
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 test1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKB8k
function name:  test1
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   null

End of function test1

End of class i.

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

End of function test1

End of class a.

Class b:
Function test1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKB8k
function name:  test1
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%3Atest1'
          2      > RETURN                                                   null

End of function test1

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1394 KiB | 13 Q