3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = range(1,12); //example array $chunks = array_chunk($arr, 3); Foreach($chunks as $chunk){ Foreach($chunk as $val){ Echo $val ." "; } Echo "\nsomething\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/0VlN0
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr, !1 = $chunks, !2 = $chunk, !3 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     12
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !0, $4
    5     5        INIT_FCALL                                                   'array_chunk'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     3
          8        DO_ICALL                                             $6      
          9        ASSIGN                                                       !1, $6
    7    10      > FE_RESET_R                                           $8      !1, ->20
         11    > > FE_FETCH_R                                                   $8, !2, ->20
    8    12    > > FE_RESET_R                                           $9      !2, ->17
         13    > > FE_FETCH_R                                                   $9, !3, ->17
    9    14    >   CONCAT                                               ~10     !3, '+'
         15        ECHO                                                         ~10
    8    16      > JMP                                                          ->13
         17    >   FE_FREE                                                      $9
   11    18        ECHO                                                         '%0Asomething%0A'
    7    19      > JMP                                                          ->11
         20    >   FE_FREE                                                      $8
   12    21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
230.44 ms | 2138 KiB | 15 Q