3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = [1, 2, 3, 4, 5, 6]; foreach(array_chunk($l, 2) as $x) { echo $x[0], ' ', $x[1], PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/DEWes
function name:  (null)
number of ops:  16
compiled vars:  !0 = $l, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_chunk'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->14
          6    > > FE_FETCH_R                                               $4, !1, ->14
    6     7    >   FETCH_DIM_R                                      ~5      !1, 0
          8        ECHO                                                     ~5
          9        ECHO                                                     '+'
         10        FETCH_DIM_R                                      ~6      !1, 1
         11        ECHO                                                     ~6
         12        ECHO                                                     '%0A'
    5    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $4
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.44 ms | 1398 KiB | 15 Q