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,9,0); $i = 0; $links_count = 4; $s = array(); while ($item = current($arr)) { $s[] = "<a href='#'>$item</a>\n"; next($arr); } foreach (array_chunk($s, $links_count) as $val) { echo implode($val); } echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/BG92r
function name:  (null)
number of ops:  32
compiled vars:  !0 = $arr, !1 = $i, !2 = $links_count, !3 = $s, !4 = $item, !5 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
    6     2        ASSIGN                                                   !2, 4
    7     3        ASSIGN                                                   !3, <array>
    9     4      > JMP                                                      ->13
   11     5    >   ROPE_INIT                                     3  ~12     '%3Ca+href%3D%27%23%27%3E'
          6        ROPE_ADD                                      1  ~12     ~12, !4
          7        ROPE_END                                      2  ~11     ~12, '%3C%2Fa%3E%0A'
          8        ASSIGN_DIM                                               !3
          9        OP_DATA                                                  ~11
   13    10        INIT_FCALL                                               'next'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    9    13    >   INIT_FCALL                                               'current'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $15     
         16        ASSIGN                                           ~16     !4, $15
         17      > JMPNZ                                                    ~16, ->5
   16    18    >   INIT_FCALL                                               'array_chunk'
         19        SEND_VAR                                                 !3
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $17     
         22      > FE_RESET_R                                       $18     $17, ->29
         23    > > FE_FETCH_R                                               $18, !5, ->29
   17    24    >   INIT_FCALL                                               'implode'
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                         $19     
         27        ECHO                                                     $19
   16    28      > JMP                                                      ->23
         29    >   FE_FREE                                                  $18
   21    30        ECHO                                                     !3
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.29 ms | 1396 KiB | 21 Q