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); } var_dump(array_chunk($s, 4)); 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
1 jumps found. (Code = 62) Position 1 = -2
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/6Pt01
function name:  (null)
number of ops:  27
compiled vars:  !0 = $arr, !1 = $i, !2 = $links_count, !3 = $s, !4 = $item
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  ~11     '%3Ca+href%3D%27%23%27%3E'
          6        ROPE_ADD                                      1  ~11     ~11, !4
          7        ROPE_END                                      2  ~10     ~11, '%3C%2Fa%3E%0A'
          8        ASSIGN_DIM                                               !3
          9        OP_DATA                                                  ~10
   13    10        INIT_FCALL                                               'next'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    9    13    >   INIT_FCALL                                               'current'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $14     
         16        ASSIGN                                           ~15     !4, $14
         17      > JMPNZ                                                    ~15, ->5
   16    18    >   INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'array_chunk'
         20        SEND_VAR                                                 !3
         21        SEND_VAL                                                 4
         22        DO_ICALL                                         $16     
         23        SEND_VAR                                                 $16
         24        DO_ICALL                                                 
   19    25        ECHO                                                     !3
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.43 ms | 1399 KiB | 21 Q