3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pet1 = 'dog'; $pet2 = 'cat'; $arrayvalue = array( array('brown', 'white'), array($pet1, $pet2) ); // echo both parts: for ($i=0; $i<2; $i++) echo $arrayvalue[0][$i] . '<br>'; echo "\n"; //echo just the first part: echo $arrayvalue[0][0] . ' ' . $arrayvalue[1][0]; echo "\n"; //echo just the second part: echo $arrayvalue[0][1] . ' ' . $arrayvalue[1][1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/YP7ii
function name:  (null)
number of ops:  33
compiled vars:  !0 = $pet1, !1 = $pet2, !2 = $arrayvalue, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'dog'
    3     1        ASSIGN                                                   !1, 'cat'
    6     2        INIT_ARRAY                                       ~6      <array>
    7     3        INIT_ARRAY                                       ~7      !0
          4        ADD_ARRAY_ELEMENT                                ~7      !1
          5        ADD_ARRAY_ELEMENT                                ~6      ~7
    5     6        ASSIGN                                                   !2, ~6
   11     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->14
   12     9    >   FETCH_DIM_R                                      ~10     !2, 0
         10        FETCH_DIM_R                                      ~11     ~10, !3
         11        CONCAT                                           ~12     ~11, '%3Cbr%3E'
         12        ECHO                                                     ~12
   11    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, 2
         15      > JMPNZ                                                    ~14, ->9
   14    16    >   ECHO                                                     '%0A'
   17    17        FETCH_DIM_R                                      ~15     !2, 0
         18        FETCH_DIM_R                                      ~16     ~15, 0
         19        CONCAT                                           ~17     ~16, '+'
         20        FETCH_DIM_R                                      ~18     !2, 1
         21        FETCH_DIM_R                                      ~19     ~18, 0
         22        CONCAT                                           ~20     ~17, ~19
         23        ECHO                                                     ~20
   19    24        ECHO                                                     '%0A'
   22    25        FETCH_DIM_R                                      ~21     !2, 0
         26        FETCH_DIM_R                                      ~22     ~21, 1
         27        CONCAT                                           ~23     ~22, '+'
         28        FETCH_DIM_R                                      ~24     !2, 1
         29        FETCH_DIM_R                                      ~25     ~24, 1
         30        CONCAT                                           ~26     ~23, ~25
         31        ECHO                                                     ~26
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1395 KiB | 13 Q