3v4l.org

run code in 300+ PHP versions simultaneously
<?php class EventDispatcher{function r($e, ListenerInterface $l){$this->e[$e][] = $l;} function d($e){foreach ($this->e[$e] as $l){$l->o();}}}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HfoRN
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   1

Class EventDispatcher:
Function r:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HfoRN
function name:  r
number of ops:  7
compiled vars:  !0 = $e, !1 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_OBJ_W                                      $2      'e'
          3        FETCH_DIM_W                                      $3      $2, !0
          4        ASSIGN_DIM                                               $3
          5        OP_DATA                                                  !1
          6      > RETURN                                                   null

End of function r

Function d:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/HfoRN
function name:  d
number of ops:  10
compiled vars:  !0 = $e, !1 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        FETCH_OBJ_R                                      ~2      'e'
          2        FETCH_DIM_R                                      ~3      ~2, !0
          3      > FE_RESET_R                                       $4      ~3, ->8
          4    > > FE_FETCH_R                                               $4, !1, ->8
          5    >   INIT_METHOD_CALL                                         !1, 'o'
          6        DO_FCALL                                      0          
          7      > JMP                                                      ->4
          8    >   FE_FREE                                                  $4
          9      > RETURN                                                   null

End of function d

End of class EventDispatcher.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.23 ms | 1394 KiB | 13 Q