3v4l.org

run code in 500+ PHP versions simultaneously
<?php class FlashMessageService { public function getFlashMessageQueue() { } } class ActionController { private FlashMessageService $flashMessageService; public function injectDependency(FlashMessageService $flashMessageService) { $this->flashMessageService = $flashMessageService; } public function do() { $this->flashMessageService->getFlashMessageQueue(); } } (new ActionController())->do();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ob66k
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   26     0  E >   NEW                                                  $0      'ActionController'
          1        DO_FCALL                                          0          
          2        INIT_METHOD_CALL                                             $0, 'do'
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1

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

End of function getflashmessagequeue

End of class FlashMessageService.

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

End of function injectdependency

Function do:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ob66k
function name:  do
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   FETCH_OBJ_R                                          ~0      'flashMessageService'
          1        INIT_METHOD_CALL                                             ~0, 'getFlashMessageQueue'
          2        DO_FCALL                                          0          
   23     3      > RETURN                                                       null

End of function do

End of class ActionController.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
139.39 ms | 487 KiB | 9 Q