3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$arr = array(1,2,3,4,5,6,7,8,9,0); $arr = array(1,2,3,4,5,6,7,8); $i = 1; $s = ''; $a = ''; while ($i != count($arr)+1) { echo $i."\n"; $a .= "<a href='#'>{$arr[$i-1]}</a>\n"; //$s .= !($i%4) ? "<li>$a</li>\n": ''; if ($i % 4 == 0) { $s .= "<li>$a</li>\n"; $a = ''; } $i++; } echo $i; $s .= ($i%4) ? "</li>\n" : ''; echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
Branch analysis from position: 5
Branch analysis from position: 21
filename:       /in/f1nv0
function name:  (null)
number of ops:  35
compiled vars:  !0 = $arr, !1 = $i, !2 = $s, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 1
    6     2        ASSIGN                                                   !2, ''
    7     3        ASSIGN                                                   !3, ''
    8     4      > JMP                                                      ->22
    9     5    >   CONCAT                                           ~8      !1, '%0A'
          6        ECHO                                                     ~8
   10     7        ROPE_INIT                                     3  ~12     '%3Ca+href%3D%27%23%27%3E'
          8        SUB                                              ~9      !1, 1
          9        FETCH_DIM_R                                      ~10     !0, ~9
         10        ROPE_ADD                                      1  ~12     ~12, ~10
         11        ROPE_END                                      2  ~11     ~12, '%3C%2Fa%3E%0A'
         12        ASSIGN_OP                                     8          !3, ~11
   12    13        MOD                                              ~15     !1, 4
         14        IS_EQUAL                                                 ~15, 0
         15      > JMPZ                                                     ~16, ->21
   13    16    >   ROPE_INIT                                     3  ~18     '%3Cli%3E'
         17        ROPE_ADD                                      1  ~18     ~18, !3
         18        ROPE_END                                      2  ~17     ~18, '%3C%2Fli%3E%0A'
         19        ASSIGN_OP                                     8          !2, ~17
   14    20        ASSIGN                                                   !3, ''
   17    21    >   PRE_INC                                                  !1
    8    22    >   COUNT                                            ~23     !0
         23        ADD                                              ~24     ~23, 1
         24        IS_NOT_EQUAL                                             !1, ~24
         25      > JMPNZ                                                    ~25, ->5
   19    26    >   ECHO                                                     !1
   20    27        MOD                                              ~26     !1, 4
         28      > JMPZ                                                     ~26, ->31
         29    >   QM_ASSIGN                                        ~27     '%3C%2Fli%3E%0A'
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~27     ''
         32    >   ASSIGN_OP                                     8          !2, ~27
   22    33        ECHO                                                     !2
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.81 ms | 1395 KiB | 13 Q