3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = "cat"; $q = 13; $row_max = 5; $words = array_fill(0, $q, $word); $chunks = array_chunk($words, $row_max); foreach ($chunks as $chunk) { echo '<tr><td>' . implode('</td><td>', $chunk) . '</td></tr>' . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/g8Eai
function name:  (null)
number of ops:  27
compiled vars:  !0 = $word, !1 = $q, !2 = $row_max, !3 = $words, !4 = $chunks, !5 = $chunk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'cat'
    4     1        ASSIGN                                                   !1, 13
    5     2        ASSIGN                                                   !2, 5
    6     3        INIT_FCALL                                               'array_fill'
          4        SEND_VAL                                                 0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
    7     9        INIT_FCALL                                               'array_chunk'
         10        SEND_VAR                                                 !3
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !4, $11
    8    14      > FE_RESET_R                                       $13     !4, ->25
         15    > > FE_FETCH_R                                               $13, !5, ->25
    9    16    >   INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '%3C%2Ftd%3E%3Ctd%3E'
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                         $14     
         20        CONCAT                                           ~15     '%3Ctr%3E%3Ctd%3E', $14
         21        CONCAT                                           ~16     ~15, '%3C%2Ftd%3E%3C%2Ftr%3E'
         22        CONCAT                                           ~17     ~16, '%0A'
         23        ECHO                                                     ~17
    8    24      > JMP                                                      ->15
         25    >   FE_FREE                                                  $13
   10    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.43 ms | 1395 KiB | 19 Q