3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pet1 = 'dog'; $pet2 = 'cat'; $arrayvalue = array( array('brown', 'white'), array($pet1, $pet2) ); // echo both: for ($i=0; $i<2; $i++) echo $arrayvalue[0][$i] . ' ' . $arrayvalue[1][$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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/ZKKRE
function name:  (null)
number of ops:  37
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                                                      ->18
   12     9    >   FETCH_DIM_R                                      ~10     !2, 0
         10        FETCH_DIM_R                                      ~11     ~10, !3
         11        CONCAT                                           ~12     ~11, '+'
         12        FETCH_DIM_R                                      ~13     !2, 1
         13        FETCH_DIM_R                                      ~14     ~13, !3
         14        CONCAT                                           ~15     ~12, ~14
         15        CONCAT                                           ~16     ~15, '%3Cbr%3E'
         16        ECHO                                                     ~16
   11    17        PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 2
         19      > JMPNZ                                                    ~18, ->9
   14    20    >   ECHO                                                     '%0A'
   17    21        FETCH_DIM_R                                      ~19     !2, 0
         22        FETCH_DIM_R                                      ~20     ~19, 0
         23        CONCAT                                           ~21     ~20, '+'
         24        FETCH_DIM_R                                      ~22     !2, 1
         25        FETCH_DIM_R                                      ~23     ~22, 0
         26        CONCAT                                           ~24     ~21, ~23
         27        ECHO                                                     ~24
   19    28        ECHO                                                     '%0A'
   22    29        FETCH_DIM_R                                      ~25     !2, 0
         30        FETCH_DIM_R                                      ~26     ~25, 1
         31        CONCAT                                           ~27     ~26, '+'
         32        FETCH_DIM_R                                      ~28     !2, 1
         33        FETCH_DIM_R                                      ~29     ~28, 1
         34        CONCAT                                           ~30     ~27, ~29
         35        ECHO                                                     ~30
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1386 KiB | 13 Q