3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => '22/tcp', 1 => 'open', 2 => 'ssh', 3 => '80/tcp', 4 => 'open', 5 => 'http', 6 => '153/tcp', 7 => 'closed', 8 => 'unknown', 9 => '443/tcp', 10 => 'open', 11 => 'https' ); foreach ( array_chunk($array, 3) as $chunk ) { echo '<tr> <td>' . $chunk[0] . '</td> <td>' . $chunk[1] . '</td> <td>' . $chunk[2] . '</td> </tr>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/8Uo9a
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $chunk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        INIT_FCALL                                               'array_chunk'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->18
          6    > > FE_FETCH_R                                               $4, !1, ->18
   21     7    >   FETCH_DIM_R                                      ~5      !1, 0
          8        CONCAT                                           ~6      '%3Ctr%3E%0A++++++++++++++%3Ctd%3E', ~5
          9        CONCAT                                           ~7      ~6, '%3C%2Ftd%3E%0A++++++++++++++%3Ctd%3E'
   22    10        FETCH_DIM_R                                      ~8      !1, 1
         11        CONCAT                                           ~9      ~7, ~8
         12        CONCAT                                           ~10     ~9, '%3C%2Ftd%3E%0A++++++++++++++%3Ctd%3E'
   23    13        FETCH_DIM_R                                      ~11     !1, 2
         14        CONCAT                                           ~12     ~10, ~11
         15        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E%0A++++%3C%2Ftr%3E'
         16        ECHO                                                     ~13
   18    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $4
   25    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.7 ms | 1395 KiB | 15 Q