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)) { $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++; } $s .= ($i%4) ? "</li>\n" : ''; echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
Branch analysis from position: 19
filename:       /in/sk9Nj
function name:  (null)
number of ops:  31
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                                                      ->20
   10     5    >   ROPE_INIT                                     3  ~11     '%3Ca+href%3D%27%23%27%3E'
          6        SUB                                              ~8      !1, 1
          7        FETCH_DIM_R                                      ~9      !0, ~8
          8        ROPE_ADD                                      1  ~11     ~11, ~9
          9        ROPE_END                                      2  ~10     ~11, '%3C%2Fa%3E%0A'
         10        ASSIGN_OP                                     8          !3, ~10
   12    11        MOD                                              ~14     !1, 4
         12        IS_EQUAL                                                 ~14, 0
         13      > JMPZ                                                     ~15, ->19
   13    14    >   ROPE_INIT                                     3  ~17     '%3Cli%3E'
         15        ROPE_ADD                                      1  ~17     ~17, !3
         16        ROPE_END                                      2  ~16     ~17, '%3C%2Fli%3E%0A'
         17        ASSIGN_OP                                     8          !2, ~16
   14    18        ASSIGN                                                   !3, ''
   17    19    >   PRE_INC                                                  !1
    8    20    >   COUNT                                            ~22     !0
         21        IS_NOT_EQUAL                                             !1, ~22
         22      > JMPNZ                                                    ~23, ->5
   19    23    >   MOD                                              ~24     !1, 4
         24      > JMPZ                                                     ~24, ->27
         25    >   QM_ASSIGN                                        ~25     '%3C%2Fli%3E%0A'
         26      > JMP                                                      ->28
         27    >   QM_ASSIGN                                        ~25     ''
         28    >   ASSIGN_OP                                     8          !2, ~25
   21    29        ECHO                                                     !2
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1395 KiB | 13 Q