3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { public function aa(); } interface b extends a { public function bb(); } class aa implements a { public function aa() { echo 'aa'; } } class bb implements b { public function aa() { echo 'aa'; } public function bb() { echo 'bb'; } } echo 'aa' . "\n"; echo 'aa:aa' . "\n"; $aa = new aa(); $aa->aa(); echo "\n\n"; echo 'bb' . "\n"; $bb = new bb(); echo 'bb:aa' . "\n"; $bb->aa(); echo 'bb:bb' . "\n"; $bb->bb();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ej3aj
function name:  (null)
number of ops:  22
compiled vars:  !0 = $aa, !1 = $bb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'b'
   13     1        DECLARE_CLASS                                            'aa'
   20     2        DECLARE_CLASS                                            'bb'
   30     3        ECHO                                                     'aa%0A'
   31     4        ECHO                                                     'aa%3Aaa%0A'
   32     5        NEW                                              $2      'aa'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
   33     8        INIT_METHOD_CALL                                         !0, 'aa'
          9        DO_FCALL                                      0          
   34    10        ECHO                                                     '%0A%0A'
   36    11        ECHO                                                     'bb%0A'
   37    12        NEW                                              $6      'bb'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $6
   38    15        ECHO                                                     'bb%3Aaa%0A'
   39    16        INIT_METHOD_CALL                                         !1, 'aa'
         17        DO_FCALL                                      0          
   40    18        ECHO                                                     'bb%3Abb%0A'
   41    19        INIT_METHOD_CALL                                         !1, 'bb'
         20        DO_FCALL                                      0          
         21      > RETURN                                                   1

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

End of function aa

End of class a.

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

End of function bb

End of class b.

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

End of function aa

End of class aa.

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

End of function aa

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

End of function bb

End of class bb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.52 ms | 1399 KiB | 13 Q