3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('A', 'B', 'C'); $array2 = array('1', '2', '3','4','5', '6', '7','8'); $result = array(); foreach($array1 as $val) { foreach($array2 as $co) { $result[] = $val.":".$co; } } print_r($result);
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/9PGEZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array1, !1 = $array2, !2 = $result, !3 = $val, !4 = $co
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3      > FE_RESET_R                                       $8      !0, ->14
          4    > > FE_FETCH_R                                               $8, !3, ->14
    9     5    > > FE_RESET_R                                       $9      !1, ->12
          6    > > FE_FETCH_R                                               $9, !4, ->12
   11     7    >   CONCAT                                           ~11     !3, '%3A'
          8        CONCAT                                           ~12     ~11, !4
          9        ASSIGN_DIM                                               !2
         10        OP_DATA                                                  ~12
    9    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $9
    7    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $8
   15    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1395 KiB | 15 Q