3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface fos{ public function getClass(); } interface sonata{ public function getClass(); } class usermanagerproxy { public function __construct(fos $proxy) { $this->proxy = $proxy; } public function getClass(){ return 'class'; } } class usermanager implements fos { public function getClass(){ return 'class'; } } var_dump(new usermanagerproxy());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fD2dj
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   DECLARE_CLASS                                            'usermanager'
   29     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $0      'usermanagerproxy'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

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

End of function getclass

End of class fos.

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

End of function getclass

End of class sonata.

Class usermanagerproxy:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fD2dj
function name:  __construct
number of ops:  4
compiled vars:  !0 = $proxy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'proxy'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function __construct

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

End of function getclass

End of class usermanagerproxy.

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

End of function getclass

End of class usermanager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.11 ms | 1396 KiB | 15 Q