3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'make' =>Array ( '0' =>'Volvo', '1' =>'Volvonew' ) , 'model' =>Array ( '0' =>'FH16', '1' => 123 ) , 'vehicleno' =>Array ( '0' =>'RS95SMB', '1' =>'RS95SMB' ) , 'reg_state' =>Array ( '0' =>'QLDS', '1' =>'QLDS' ) ); $i=0; $return = array(); foreach($array as $key=>$value) { $return[$i][$key] = $value[$i]; $return[$i+1][$key] = $value[$i+1]; } print_r(($return)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/1CBgn
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $i, !2 = $return, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   30     1        ASSIGN                                                   !1, 0
   31     2        ASSIGN                                                   !2, <array>
   32     3      > FE_RESET_R                                       $8      !0, ->17
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->17
          5    >   ASSIGN                                                   !4, ~9
   33     6        FETCH_DIM_R                                      ~13     !3, !1
          7        FETCH_DIM_W                                      $11     !2, !1
          8        ASSIGN_DIM                                               $11, !4
          9        OP_DATA                                                  ~13
   34    10        ADD                                              ~14     !1, 1
         11        ADD                                              ~17     !1, 1
         12        FETCH_DIM_R                                      ~18     !3, ~17
         13        FETCH_DIM_W                                      $15     !2, ~14
         14        ASSIGN_DIM                                               $15, !4
         15        OP_DATA                                                  ~18
   32    16      > JMP                                                      ->4
         17    >   FE_FREE                                                  $8
   36    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   37    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.17 ms | 1445 KiB | 14 Q