3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface fos{ public function getClass(); } interface sonata{ public function getClass(); } class usermanager implements fos, sonata { public function getClass(){ return 'class'; } } var_dump(new usermanager());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XCkVD
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'usermanager'
   17     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $0      'usermanager'
          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/XCkVD
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/XCkVD
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 usermanager:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XCkVD
function name:  getClass
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   'class'
   14     1*     > RETURN                                                   null

End of function getclass

End of class usermanager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.39 ms | 1395 KiB | 15 Q