3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface AllowsOpen{ public function open(); } trait Container{ public function open(){ echo 'Something is inside!'; } } class Can implements AllowsOpen{ use Container; } $objCan = new Can(); $objCan->open();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K4vDP
function name:  (null)
number of ops:  7
compiled vars:  !0 = $objCan
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                                'can'
   17     1        NEW                                                  $1      'Can'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   18     4        INIT_METHOD_CALL                                             !0, 'open'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function open

End of class AllowsOpen.

Class Container:
Function open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K4vDP
function name:  open
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                         'Something+is+inside%21'
   10     1      > RETURN                                                       null

End of function open

End of class Container.

Class Can: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.02 ms | 2124 KiB | 13 Q