3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Symfony\Component\EventDispatcher { interface EventSubscriberInterface { public static function getSubscribedEvents(); } } namespace App\EventListener { class MyListener implements \Symfony\Component\EventDispatcher\EventSubscriberInterface { public static function getSubscribedEvents(): array { return [ 'kernel.request' => 'onKernelRequest', ]; } public function onKernelRequest(): void { // do something } } } namespace App { var_dump(EventListener\MyListener::getSubscribedEvents()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH87e
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'app%5Ceventlistener%5Cmylistener'
   28     1        INIT_NS_FCALL_BY_NAME                                    'App%5Cvar_dump'
          2        INIT_STATIC_METHOD_CALL                                  'App%5CEventListener%5CMyListener', 'getSubscribedEvents'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
   29     6      > RETURN                                                   1

Class Symfony\Component\EventDispatcher\EventSubscriberInterface:
Function getsubscribedevents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH87e
function name:  getSubscribedEvents
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function getsubscribedevents

End of class Symfony\Component\EventDispatcher\EventSubscriberInterface.

Class App\EventListener\MyListener:
Function getsubscribedevents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH87e
function name:  getSubscribedEvents
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   <array>
   18     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function getsubscribedevents

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

End of function onkernelrequest

End of class App\EventListener\MyListener.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.24 ms | 1400 KiB | 15 Q