3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('R', 'B', 'G' ,'Y'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { array_push($master, $num); //$master += array($color => $num); //echo $color.' => '.$num; //echo "\n"; } array_push($master, $master); } print_r($master);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 18
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: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/kJUGG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $master, !1 = $arrColors, !2 = $arrNumbers, !3 = $color, !4 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    6     3      > FE_RESET_R                                       $8      !1, ->18
          4    > > FE_FETCH_R                                               $8, !3, ->18
    7     5    > > FE_RESET_R                                       $9      !2, ->12
          6    > > FE_FETCH_R                                               $9, !4, ->12
    8     7    >   INIT_FCALL                                               'array_push'
          8        SEND_REF                                                 !0
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                                 
    7    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $9
   13    13        INIT_FCALL                                               'array_push'
         14        SEND_REF                                                 !0
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    6    17      > JMP                                                      ->4
         18    >   FE_FREE                                                  $8
   16    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1387 KiB | 17 Q