3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is a small script that shows how to use an multiple array for($x = 0;$x < 10;$x++){ for($y = 0;$y < 10;$y++){ $mat[$x][$y] = "$x,$y"; } } for($x = 0;$x < count($mat);$x++){ for($y = 0;$y < count($mat[$x]);$y++){ echo "mat[$x][$y]: " . $mat[$x][$y] . " "; } echo "\n"; } ?>
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 = 2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 18
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 20
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 18
Branch analysis from position: 40
Branch analysis from position: 18
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 20
Branch analysis from position: 35
Branch analysis from position: 20
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
filename:       /in/XfWaH
function name:  (null)
number of ops:  41
compiled vars:  !0 = $x, !1 = $y, !2 = $mat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    4     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->11
    5     4    >   ROPE_INIT                                     3  ~8      !0
          5        ROPE_ADD                                      1  ~8      ~8, '%2C'
          6        ROPE_END                                      2  ~7      ~8, !1
          7        FETCH_DIM_W                                      $5      !2, !0
          8        ASSIGN_DIM                                               $5, !1
          9        OP_DATA                                                  ~7
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 10
         12      > JMPNZ                                                    ~11, ->4
    3    13    >   PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 10
         15      > JMPNZ                                                    ~13, ->2
    9    16    >   ASSIGN                                                   !0, 0
         17      > JMP                                                      ->37
   10    18    >   ASSIGN                                                   !1, 0
         19      > JMP                                                      ->31
   11    20    >   ROPE_INIT                                     5  ~17     'mat%5B'
         21        ROPE_ADD                                      1  ~17     ~17, !0
         22        ROPE_ADD                                      2  ~17     ~17, '%5D%5B'
         23        ROPE_ADD                                      3  ~17     ~17, !1
         24        ROPE_END                                      4  ~16     ~17, '%5D%3A+'
   12    25        FETCH_DIM_R                                      ~20     !2, !0
         26        FETCH_DIM_R                                      ~21     ~20, !1
         27        CONCAT                                           ~22     ~16, ~21
         28        CONCAT                                           ~23     ~22, '+'
         29        ECHO                                                     ~23
   10    30        PRE_INC                                                  !1
         31    >   FETCH_DIM_R                                      ~25     !2, !0
         32        COUNT                                            ~26     ~25
         33        IS_SMALLER                                               !1, ~26
         34      > JMPNZ                                                    ~27, ->20
   14    35    >   ECHO                                                     '%0A'
    9    36        PRE_INC                                                  !0
         37    >   COUNT                                            ~29     !2
         38        IS_SMALLER                                               !0, ~29
         39      > JMPNZ                                                    ~30, ->18
   16    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.07 ms | 1399 KiB | 13 Q