3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr["Intercambio"]["0"]["Versao"]["0"] = "2"; var_dump($arr);die; $arr["TextosCodificados"]["TextoCodificado"]["0"]["QualificadorAssunto"]["0"] = "ALL"; $arr["TextosCodificados"]["TextoCodificado"]["0"]["Texto"] = "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"; $arr["TextosCodificados"]["TextoCodificado"]["1"]["QualificadorAssunto"]["0"] = "AAI"; $arr["TextosCodificados"]["TextoCodificado"]["1"]["Texto"] = "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"; $arr["TextosCodificados"]["TextoCodificado"]["2"]["QualificadorAssunto"]["0"] = "IVN"; $arr["TextosCodificados"]["TextoCodificado"]["2"]["Texto"] = "Pedido Interno:0000283278 ID da Carga:"; function teste($arr) { foreach($arr as $k => $v) { if(is_array($v)){ } else { } } } $rst = teste($arr); var_dump($rst);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/At3Lp
function name:  (null)
number of ops:  51
compiled vars:  !0 = $arr, !1 = $rst
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_DIM_W                                      $3      !0, 'Intercambio'
          2        FETCH_DIM_W                                      $4      $3, 0
          3        FETCH_DIM_W                                      $5      $4, 'Versao'
          4        ASSIGN_DIM                                               $5, 0
          5        OP_DATA                                                  '2'
    9     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > EXIT                                                     
   11    10*       FETCH_DIM_W                                      $8      !0, 'TextosCodificados'
         11*       FETCH_DIM_W                                      $9      $8, 'TextoCodificado'
         12*       FETCH_DIM_W                                      $10     $9, 0
         13*       FETCH_DIM_W                                      $11     $10, 'QualificadorAssunto'
         14*       ASSIGN_DIM                                               $11, 0
         15*       OP_DATA                                                  'ALL'
   12    16*       FETCH_DIM_W                                      $13     !0, 'TextosCodificados'
         17*       FETCH_DIM_W                                      $14     $13, 'TextoCodificado'
         18*       FETCH_DIM_W                                      $15     $14, 0
         19*       ASSIGN_DIM                                               $15, 'Texto'
         20*       OP_DATA                                                  'Vnd+mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t'
   13    21*       FETCH_DIM_W                                      $17     !0, 'TextosCodificados'
         22*       FETCH_DIM_W                                      $18     $17, 'TextoCodificado'
         23*       FETCH_DIM_W                                      $19     $18, 1
         24*       FETCH_DIM_W                                      $20     $19, 'QualificadorAssunto'
         25*       ASSIGN_DIM                                               $20, 0
         26*       OP_DATA                                                  'AAI'
   14    27*       FETCH_DIM_W                                      $22     !0, 'TextosCodificados'
         28*       FETCH_DIM_W                                      $23     $22, 'TextoCodificado'
         29*       FETCH_DIM_W                                      $24     $23, 1
         30*       ASSIGN_DIM                                               $24, 'Texto'
         31*       OP_DATA                                                  'Protocolo+ICMS+18809+e+1192012+ICMS+Retido+Art+313W'
   15    32*       FETCH_DIM_W                                      $26     !0, 'TextosCodificados'
         33*       FETCH_DIM_W                                      $27     $26, 'TextoCodificado'
         34*       FETCH_DIM_W                                      $28     $27, 2
         35*       FETCH_DIM_W                                      $29     $28, 'QualificadorAssunto'
         36*       ASSIGN_DIM                                               $29, 0
         37*       OP_DATA                                                  'IVN'
   16    38*       FETCH_DIM_W                                      $31     !0, 'TextosCodificados'
         39*       FETCH_DIM_W                                      $32     $31, 'TextoCodificado'
         40*       FETCH_DIM_W                                      $33     $32, 2
         41*       ASSIGN_DIM                                               $33, 'Texto'
         42*       OP_DATA                                                  'Pedido+Interno%3A0000283278+ID+da+Carga%3A'
   30    43*       INIT_FCALL                                               'teste'
         44*       SEND_VAR                                                 !0
         45*       DO_FCALL                                      0  $35     
         46*       ASSIGN                                                   !1, $35
   31    47*       INIT_FCALL                                               'var_dump'
         48*       SEND_VAR                                                 !1
         49*       DO_ICALL                                                 
         50*     > RETURN                                                   1

Function teste:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/At3Lp
function name:  teste
number of ops:  10
compiled vars:  !0 = $arr, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   20     1      > FE_RESET_R                                       $3      !0, ->8
          2    > > FE_FETCH_R                                       ~4      $3, !1, ->8
          3    >   ASSIGN                                                   !2, ~4
   22     4        TYPE_CHECK                                  128          !1
          5      > JMPZ                                                     ~6, ->7
          6    > > JMP                                                      ->7
   20     7    > > JMP                                                      ->2
          8    >   FE_FREE                                                  $3
   29     9      > RETURN                                                   null

End of function teste

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.65 ms | 1403 KiB | 16 Q