3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbquery_results1[0] = array("1","5","b99"); $dbquery_results1[1] = array("4","12","www"); $dbquery_results1[2] = array("10","32","ccc"); $dbquery_results1[3] = array("7","142","xx"); $dbquery_results2[0] = array("c","10"); $dbquery_results2[1] = array("as","1"); $dbquery_results2[2] = array("fe","7"); foreach($dbquery_results1 as $line_r1) { foreach($dbquery_results2 as $line_r2) { if($line_r1[0] == $line_r2[1]) { $line = $line_r1; $line[] = $line_r2[0]; $dbquery_combination[] = $line; } } } print_r($dbquery_combination); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 31
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 31
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 29
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 29
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 28
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 29
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/bnJ8n
function name:  (null)
number of ops:  36
compiled vars:  !0 = $dbquery_results1, !1 = $dbquery_results2, !2 = $line_r1, !3 = $line_r2, !4 = $line, !5 = $dbquery_combination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  <array>
    5     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  <array>
    6     6        ASSIGN_DIM                                               !0, 3
          7        OP_DATA                                                  <array>
    8     8        ASSIGN_DIM                                               !1, 0
          9        OP_DATA                                                  <array>
    9    10        ASSIGN_DIM                                               !1, 1
         11        OP_DATA                                                  <array>
   10    12        ASSIGN_DIM                                               !1, 2
         13        OP_DATA                                                  <array>
   12    14      > FE_RESET_R                                       $13     !0, ->31
         15    > > FE_FETCH_R                                               $13, !2, ->31
   14    16    > > FE_RESET_R                                       $14     !1, ->29
         17    > > FE_FETCH_R                                               $14, !3, ->29
   16    18    >   FETCH_DIM_R                                      ~15     !2, 0
         19        FETCH_DIM_R                                      ~16     !3, 1
         20        IS_EQUAL                                                 ~15, ~16
         21      > JMPZ                                                     ~17, ->28
   18    22    >   ASSIGN                                                   !4, !2
   19    23        FETCH_DIM_R                                      ~20     !3, 0
         24        ASSIGN_DIM                                               !4
         25        OP_DATA                                                  ~20
   21    26        ASSIGN_DIM                                               !5
         27        OP_DATA                                                  !4
   14    28    > > JMP                                                      ->17
         29    >   FE_FREE                                                  $14
   12    30      > JMP                                                      ->15
         31    >   FE_FREE                                                  $13
   26    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                                 
   27    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.47 ms | 945 KiB | 16 Q