3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('Red', 'Blue', 'Green' ,'Yellow'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { $temp = $color.' - '.$num; array_push($master, $temp); } } print_r($master);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
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/cTpCQ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $master, !1 = $arrColors, !2 = $arrNumbers, !3 = $color, !4 = $num, !5 = $temp
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>
    5     3      > FE_RESET_R                                       $9      !1, ->17
          4    > > FE_FETCH_R                                               $9, !3, ->17
    6     5    > > FE_RESET_R                                       $10     !2, ->15
          6    > > FE_FETCH_R                                               $10, !4, ->15
    7     7    >   CONCAT                                           ~11     !3, '+-+'
          8        CONCAT                                           ~12     ~11, !4
          9        ASSIGN                                                   !5, ~12
    8    10        INIT_FCALL                                               'array_push'
         11        SEND_REF                                                 !0
         12        SEND_VAR                                                 !5
         13        DO_ICALL                                                 
    6    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $10
    5    16      > JMP                                                      ->4
         17    >   FE_FREE                                                  $9
   11    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.59 ms | 1395 KiB | 17 Q