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,$controller]);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/uD9p2
function name:  (null)
number of ops:  26
compiled vars:  !0 = $test, !1 = $controller, !2 = $modules, !3 = $resource, !4 = $action, !5 = $acl, !6 = $actions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1      > FE_RESET_R                                       $8      !0, ->24
          2    > > FE_FETCH_R                                       ~9      $8, !1, ->24
          3    >   ASSIGN                                                   !2, ~9
   17     4        INIT_FCALL                                               'var_dump'
          5        INIT_ARRAY                                       ~11     !2
          6        ADD_ARRAY_ELEMENT                                ~11     !1
          7        SEND_VAL                                                 ~11
          8        DO_ICALL                                                 
          9      > EXIT                                                     
   18    10*       CONCAT                                           ~13     !2, !1
         11*       ASSIGN                                                   !3, ~13
   19    12*       FE_RESET_R                                       $15     !1, ->22
         13*       FE_FETCH_R                                               $15, !4, ->22
   20    14*       INIT_METHOD_CALL                                         !5, 'addResource'
         15*       NEW                                              $16     'Resource'
         16*       SEND_VAR_EX                                              !3
         17*       DO_FCALL                                      0          
         18*       SEND_VAR_NO_REF_EX                                       $16
         19*       SEND_VAR_EX                                              !6
         20*       DO_FCALL                                      0          
   19    21*       JMP                                                      ->13
         22*       FE_FREE                                                  $15
   16    23*       JMP                                                      ->2
         24    >   FE_FREE                                                  $8
   23    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.17 ms | 1395 KiB | 15 Q