3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($k=1;$k<3;$k++) { ${'var'.$k} = 'foo'; } // so far so good $dbq = ''; for ($j=1;$j<3;$j++) { $dbq .= "stuff ${"var$j"} "; } echo $dbq;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 11
Branch analysis from position: 21
Branch analysis from position: 11
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/fvEnB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $k, !1 = $dbq, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->6
    4     2    >   CONCAT                                           ~4      'var', !0
          3        FETCH_W                      local               $5      ~4
          4        ASSIGN                                                   $5, 'foo'
    3     5        PRE_INC                                                  !0
          6    >   IS_SMALLER                                               !0, 3
          7      > JMPNZ                                                    ~8, ->2
    7     8    >   ASSIGN                                                   !1, ''
    8     9        ASSIGN                                                   !2, 1
         10      > JMP                                                      ->19
    9    11    >   ROPE_INIT                                     3  ~14     'stuff+'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~11     'var', !2
         14        FETCH_R                      local               ~12     ~11
         15        ROPE_ADD                                      1  ~14     ~14, ~12
         16        ROPE_END                                      2  ~13     ~14, '+'
         17        ASSIGN_OP                                     8          !1, ~13
    8    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 3
         20      > JMPNZ                                                    ~18, ->11
   11    21    >   ECHO                                                     !1
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.27 ms | 1007 KiB | 13 Q