3v4l.org

run code in 500+ PHP versions simultaneously
<? $arr = []; $arr[12401] = ['docUpload' => '']; $arr[12601] = ['docUpload' => 'html dom.txt']; $arr[12602] = ['docUpload' => 'PYTHON AND DJANGO ARE HUGE IN FINTECH.txt']; $arr[12603] = ['docUpload' => '']; $newArr = []; if (! empty($arr)) { foreach ($arr as $id => $docArr) { $newArr[$id] = $docArr['docUpload']; } } echo '<pre>';print_r($newArr);echo '</pre>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 21
filename:       /in/A1UHS
function name:  (null)
number of ops:  27
compiled vars:  !0 = $arr, !1 = $newArr, !2 = $docArr, !3 = $id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN_DIM                                                   !0, 12401
          2        OP_DATA                                                      <array>
    4     3        ASSIGN_DIM                                                   !0, 12601
          4        OP_DATA                                                      <array>
    5     5        ASSIGN_DIM                                                   !0, 12602
          6        OP_DATA                                                      <array>
    6     7        ASSIGN_DIM                                                   !0, 12603
          8        OP_DATA                                                      <array>
    7     9        ASSIGN                                                       !1, <array>
    8    10        ISSET_ISEMPTY_CV                                     ~10     !0
         11        BOOL_NOT                                             ~11     ~10
         12      > JMPZ                                                         ~11, ->21
    9    13    > > FE_RESET_R                                           $12     !0, ->20
         14    > > FE_FETCH_R                                           ~13     $12, !2, ->20
         15    >   ASSIGN                                                       !3, ~13
   10    16        FETCH_DIM_R                                          ~16     !2, 'docUpload'
         17        ASSIGN_DIM                                                   !1, !3
         18        OP_DATA                                                      ~16
    9    19      > JMP                                                          ->14
         20    >   FE_FREE                                                      $12
   13    21    >   ECHO                                                         '%3Cpre%3E'
         22        INIT_FCALL                                                   'print_r'
         23        SEND_VAR                                                     !1
         24        DO_ICALL                                                     
         25        ECHO                                                         '%3C%2Fpre%3E'
         26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.2 ms | 2112 KiB | 13 Q