3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = [12, 23, 34]; $second = [32, 21, 43]; $comb=[]; foreach($first as $key){ foreach($second as $row){ $comb[]=$key; $comb[]=$row; } } $combine=['name'=>'data1', 'color'=> '#299662', array_map(null, $first, $second)]; print_r($combine);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/ePeBY
function name:  (null)
number of ops:  28
compiled vars:  !0 = $first, !1 = $second, !2 = $comb, !3 = $key, !4 = $row, !5 = $combine
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>
    6     3      > FE_RESET_R                                       $9      !0, ->14
          4    > > FE_FETCH_R                                               $9, !3, ->14
    7     5    > > FE_RESET_R                                       $10     !1, ->12
          6    > > FE_FETCH_R                                               $10, !4, ->12
    8     7    >   ASSIGN_DIM                                               !2
          8        OP_DATA                                                  !3
    9     9        ASSIGN_DIM                                               !2
         10        OP_DATA                                                  !4
    7    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $10
    6    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $9
   12    15        INIT_ARRAY                                       ~13     'data1', 'name'
         16        ADD_ARRAY_ELEMENT                                ~13     '%23299662', 'color'
         17        INIT_FCALL                                               'array_map'
         18        SEND_VAL                                                 null
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $14     
         22        ADD_ARRAY_ELEMENT                                ~13     $14
         23        ASSIGN                                                   !5, ~13
   13    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.72 ms | 1401 KiB | 17 Q