3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q1 = ''; $q2 = 'A'; $q3 = ''; $q4 = 'E'; $q5 = 'D'; for($i=1; $i <= 5; $i++) { if (${"q$i"} == '') ${"q$i"} = 'X'; } echo "$q1\n"; echo "$q2\n"; echo "$q3\n"; echo "$q4\n"; echo "$q5\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
Branch analysis from position: 16
filename:       /in/sYehs
function name:  (null)
number of ops:  35
compiled vars:  !0 = $q1, !1 = $q2, !2 = $q3, !3 = $q4, !4 = $q5, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 'A'
    5     2        ASSIGN                                                   !2, ''
    6     3        ASSIGN                                                   !3, 'E'
    7     4        ASSIGN                                                   !4, 'D'
    8     5        ASSIGN                                                   !5, 1
          6      > JMP                                                      ->17
    9     7    >   NOP                                                      
          8        FAST_CONCAT                                      ~12     'q', !5
          9        FETCH_R                      local               ~13     ~12
         10        IS_EQUAL                                                 ~13, ''
         11      > JMPZ                                                     ~14, ->16
         12    >   NOP                                                      
         13        FAST_CONCAT                                      ~15     'q', !5
         14        FETCH_W                      local               $16     ~15
         15        ASSIGN                                                   $16, 'X'
    8    16    >   PRE_INC                                                  !5
         17    >   IS_SMALLER_OR_EQUAL                                      !5, 5
         18      > JMPNZ                                                    ~19, ->7
   11    19    >   NOP                                                      
         20        FAST_CONCAT                                      ~20     !0, '%0A'
         21        ECHO                                                     ~20
   12    22        NOP                                                      
         23        FAST_CONCAT                                      ~21     !1, '%0A'
         24        ECHO                                                     ~21
   13    25        NOP                                                      
         26        FAST_CONCAT                                      ~22     !2, '%0A'
         27        ECHO                                                     ~22
   14    28        NOP                                                      
         29        FAST_CONCAT                                      ~23     !3, '%0A'
         30        ECHO                                                     ~23
   15    31        NOP                                                      
         32        FAST_CONCAT                                      ~24     !4, '%0A'
         33        ECHO                                                     ~24
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.21 ms | 1003 KiB | 13 Q