3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr_orderno = [12321,321,321]; $arr_deliverysn = [7,8,9]; $arr_deliverycorpname = ['asd','qwe','zxc']; $arr_merge = []; for($i = 0; $i < count($arr_orderno); $i++){ $arr_merge[$i] = [$arr_orderno[$i], $arr_deliverysn[$i], $arr_deliverycorpname[$i]]; } $arr_key = ['orderno', 'deliverysn', 'deliverycorpname']; $arr = []; foreach ($arr_merge as $value) { $arr[] = array_combine($arr_key, $value); } print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 29
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 29
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/8r0ko
function name:  (null)
number of ops:  34
compiled vars:  !0 = $arr_orderno, !1 = $arr_deliverysn, !2 = $arr_deliverycorpname, !3 = $arr_merge, !4 = $i, !5 = $arr_key, !6 = $arr, !7 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, <array>
    8     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->15
    9     6    >   FETCH_DIM_R                                      ~14     !0, !4
          7        INIT_ARRAY                                       ~15     ~14
          8        FETCH_DIM_R                                      ~16     !1, !4
          9        ADD_ARRAY_ELEMENT                                ~15     ~16
         10        FETCH_DIM_R                                      ~17     !2, !4
         11        ADD_ARRAY_ELEMENT                                ~15     ~17
         12        ASSIGN_DIM                                               !3, !4
         13        OP_DATA                                                  ~15
    8    14        PRE_INC                                                  !4
         15    >   COUNT                                            ~19     !0
         16        IS_SMALLER                                               !4, ~19
         17      > JMPNZ                                                    ~20, ->6
   12    18    >   ASSIGN                                                   !5, <array>
   14    19        ASSIGN                                                   !6, <array>
   15    20      > FE_RESET_R                                       $23     !3, ->29
         21    > > FE_FETCH_R                                               $23, !7, ->29
   16    22    >   INIT_FCALL                                               'array_combine'
         23        SEND_VAR                                                 !5
         24        SEND_VAR                                                 !7
         25        DO_ICALL                                         $25     
         26        ASSIGN_DIM                                               !6
         27        OP_DATA                                                  $25
   15    28      > JMP                                                      ->21
         29    >   FE_FREE                                                  $23
   20    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !6
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.79 ms | 1461 KiB | 15 Q