3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'a' , 'b', 'c', 'd' , 'e', 'f', 'g' , 'h', 'i', 'j' , 'k', 'l', 'm' , 'n', 'o', 'p' , 'q', 'r' ]; foreach (array_chunk($array, 4) as $row) { echo '<tr><td>' , implode('</td><td>', $row) , '</td>' , str_repeat('<td></td>', 4-count($row)) , '</tr>'; echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/L861q
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_chunk'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 4
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->24
          6    > > FE_FETCH_R                                               $4, !1, ->24
   11     7    >   ECHO                                                     '%3Ctr%3E%3Ctd%3E'
          8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%3C%2Ftd%3E%3Ctd%3E'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        ECHO                                                     $5
         13        ECHO                                                     '%3C%2Ftd%3E'
         14        INIT_FCALL                                               'str_repeat'
         15        SEND_VAL                                                 '%3Ctd%3E%3C%2Ftd%3E'
         16        COUNT                                            ~6      !1
         17        SUB                                              ~7      4, ~6
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
         21        ECHO                                                     '%3C%2Ftr%3E'
   12    22        ECHO                                                     '%0A'
   10    23      > JMP                                                      ->6
         24    >   FE_FREE                                                  $4
   13    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.52 ms | 1395 KiB | 19 Q