3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ 'Analytics' => [ [9, 'manager', 1, false], [3, 'manager', 2, false], [2, 'analyst', 3, false], [2, 'marketer', 1, false], [1, 'manager', 2, true] ] ]; foreach ($input as $dept => $row) { foreach ($row as [$quantity, $type, $grade, $chief]) { var_export([$dept, $quantity, $type, $grade, $chief]); echo "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 27
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 25
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 25
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 25
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/SbgZs
function name:  (null)
number of ops:  29
compiled vars:  !0 = $input, !1 = $row, !2 = $dept, !3 = $quantity, !4 = $type, !5 = $grade, !6 = $chief
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1      > FE_RESET_R                                       $8      !0, ->27
          2    > > FE_FETCH_R                                       ~9      $8, !1, ->27
          3    >   ASSIGN                                                   !2, ~9
   14     4      > FE_RESET_R                                       $11     !1, ->25
          5    > > FE_FETCH_R                                               $11, $12, ->25
          6    >   FETCH_LIST_R                                     $13     $12, 0
          7        ASSIGN                                                   !3, $13
          8        FETCH_LIST_R                                     $15     $12, 1
          9        ASSIGN                                                   !4, $15
         10        FETCH_LIST_R                                     $17     $12, 2
         11        ASSIGN                                                   !5, $17
         12        FETCH_LIST_R                                     $19     $12, 3
         13        ASSIGN                                                   !6, $19
         14        FREE                                                     $12
   15    15        INIT_FCALL                                               'var_export'
         16        INIT_ARRAY                                       ~21     !2
         17        ADD_ARRAY_ELEMENT                                ~21     !3
         18        ADD_ARRAY_ELEMENT                                ~21     !4
         19        ADD_ARRAY_ELEMENT                                ~21     !5
         20        ADD_ARRAY_ELEMENT                                ~21     !6
         21        SEND_VAL                                                 ~21
         22        DO_ICALL                                                 
   16    23        ECHO                                                     '%0A'
   14    24      > JMP                                                      ->5
         25    >   FE_FREE                                                  $11
   13    26      > JMP                                                      ->2
         27    >   FE_FREE                                                  $8
   18    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.51 ms | 1003 KiB | 14 Q