3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('A', 'B'); $array2 = array('1', '2', '3'); $num = count($array2); $comb = array(); $result = array(); foreach($array1 as $val) { foreach($comb as $co) { $result[] = $val."".$co; } } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/MSjdv
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array1, !1 = $array2, !2 = $num, !3 = $comb, !4 = $result, !5 = $val, !6 = $co
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        COUNT                                            ~9      !1
          3        ASSIGN                                                   !2, ~9
    6     4        ASSIGN                                                   !3, <array>
   11     5        ASSIGN                                                   !4, <array>
   13     6      > FE_RESET_R                                       $13     !0, ->17
          7    > > FE_FETCH_R                                               $13, !5, ->17
   15     8    > > FE_RESET_R                                       $14     !3, ->15
          9    > > FE_FETCH_R                                               $14, !6, ->15
   17    10    >   CONCAT                                           ~16     !5, ''
         11        CONCAT                                           ~17     ~16, !6
         12        ASSIGN_DIM                                               !4
         13        OP_DATA                                                  ~17
   15    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $14
   13    16      > JMP                                                      ->7
         17    >   FE_FREE                                                  $13
   21    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.42 ms | 1395 KiB | 15 Q