3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array ( 14 => array ( 0 => 29, 1 => 129 ), 193 => array ( 0 => 6009231, 1 => 6324415, 2 => 5682922 ) ); $result = array(); list($k1, $k2) = array_keys($myArray); foreach ($myArray[$k1] as $v1) { foreach ($myArray[$k2] as $v2) { $result[] = "$k1:$v1;$k2:$v2"; } } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 28
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 28
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 26
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 26
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/rXTEr
function name:  (null)
number of ops:  33
compiled vars:  !0 = $myArray, !1 = $result, !2 = $k1, !3 = $k2, !4 = $v1, !5 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, <array>
   17     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        FETCH_LIST_R                                     $9      $8, 0
          6        ASSIGN                                                   !2, $9
          7        FETCH_LIST_R                                     $11     $8, 1
          8        ASSIGN                                                   !3, $11
          9        FREE                                                     $8
   18    10        FETCH_DIM_R                                      ~13     !0, !2
         11      > FE_RESET_R                                       $14     ~13, ->28
         12    > > FE_FETCH_R                                               $14, !4, ->28
   19    13    >   FETCH_DIM_R                                      ~15     !0, !3
         14      > FE_RESET_R                                       $16     ~15, ->26
         15    > > FE_FETCH_R                                               $16, !5, ->26
   20    16    >   ROPE_INIT                                     7  ~19     !2
         17        ROPE_ADD                                      1  ~19     ~19, '%3A'
         18        ROPE_ADD                                      2  ~19     ~19, !4
         19        ROPE_ADD                                      3  ~19     ~19, '%3B'
         20        ROPE_ADD                                      4  ~19     ~19, !3
         21        ROPE_ADD                                      5  ~19     ~19, '%3A'
         22        ROPE_END                                      6  ~18     ~19, !5
         23        ASSIGN_DIM                                               !1
         24        OP_DATA                                                  ~18
   19    25      > JMP                                                      ->15
         26    >   FE_FREE                                                  $16
   18    27      > JMP                                                      ->12
         28    >   FE_FREE                                                  $14
   23    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.43 ms | 1000 KiB | 15 Q