3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array_chunk(['item 1','item 2','item 3','item 4','item 5','item 6','item 7'], 3); foreach ($array as $set) { echo '<div class="big">'.array_shift($set).'</div>'.PHP_EOL; if (count($set)) echo '<div>'."\n\t".'<div class="small">'.implode('</div>'."\n\t".'<div class="small">', $set).'</div>'."\n".'</div>'."\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
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 23
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/URB3D
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $set
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'array_chunk'
          1        SEND_VAL                                                     <array>
          2        SEND_VAL                                                     3
          3        DO_ICALL                                             $2      
          4        ASSIGN                                                       !0, $2
    4     5      > FE_RESET_R                                           $4      !0, ->24
          6    > > FE_FETCH_R                                                   $4, !1, ->24
    5     7    >   INIT_FCALL                                                   'array_shift'
          8        SEND_REF                                                     !1
          9        DO_ICALL                                             $5      
         10        CONCAT                                               ~6      '%3Cdiv+class%3D%22big%22%3E', $5
         11        CONCAT                                               ~7      ~6, '%3C%2Fdiv%3E'
         12        CONCAT                                               ~8      ~7, '%0A'
         13        ECHO                                                         ~8
    6    14        COUNT                                                ~9      !1
         15      > JMPZ                                                         ~9, ->23
         16    >   FRAMELESS_ICALL_2                implode             ~10     '%3C%2Fdiv%3E%0A%09%3Cdiv+class%3D%22small%22%3E', !1
         17        CONCAT                                               ~11     '%3Cdiv%3E%0A%09%3Cdiv+class%3D%22small%22%3E', ~10
         18        CONCAT                                               ~12     ~11, '%3C%2Fdiv%3E'
         19        CONCAT                                               ~13     ~12, '%0A'
         20        CONCAT                                               ~14     ~13, '%3C%2Fdiv%3E'
         21        CONCAT                                               ~15     ~14, '%0A'
         22        ECHO                                                         ~15
    4    23    > > JMP                                                          ->6
         24    >   FE_FREE                                                      $4
    8    25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.01 ms | 1932 KiB | 15 Q