3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ 'fronted' => [ 'index' => ['index','test'], ], 'backend' => [ 'index' => ['test'] ] ]; foreach ($test as $modules => $controller) { var_dump([$modules,$comtroller]);die; $resource = $modules.$controller; foreach ($controller as $action) { $acl->addResource(new Resource($resource), $actions); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 24
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/4qm7m
function name:  (null)
number of ops:  26
compiled vars:  !0 = $test, !1 = $controller, !2 = $modules, !3 = $comtroller, !4 = $resource, !5 = $action, !6 = $acl, !7 = $actions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1      > FE_RESET_R                                       $9      !0, ->24
          2    > > FE_FETCH_R                                       ~10     $9, !1, ->24
          3    >   ASSIGN                                                   !2, ~10
   17     4        INIT_FCALL                                               'var_dump'
          5        INIT_ARRAY                                       ~12     !2
          6        ADD_ARRAY_ELEMENT                                ~12     !3
          7        SEND_VAL                                                 ~12
          8        DO_ICALL                                                 
          9      > EXIT                                                     
   18    10*       CONCAT                                           ~14     !2, !1
         11*       ASSIGN                                                   !4, ~14
   19    12*       FE_RESET_R                                       $16     !1, ->22
         13*       FE_FETCH_R                                               $16, !5, ->22
   20    14*       INIT_METHOD_CALL                                         !6, 'addResource'
         15*       NEW                                              $17     'Resource'
         16*       SEND_VAR_EX                                              !4
         17*       DO_FCALL                                      0          
         18*       SEND_VAR_NO_REF_EX                                       $17
         19*       SEND_VAR_EX                                              !7
         20*       DO_FCALL                                      0          
   19    21*       JMP                                                      ->13
         22*       FE_FREE                                                  $16
   16    23*       JMP                                                      ->2
         24    >   FE_FREE                                                  $9
   23    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.51 ms | 1395 KiB | 15 Q