3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = ["a", "b" , "c"]; $result = []; foreach (array_chunk($chars, 1) as [0 => $result[], 0 => $result[], 0 => $result[]]); var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/3DQCZ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $chars, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_chunk'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $4      
          6      > FE_RESET_R                                       $5      $4, ->19
          7    > > FE_FETCH_R                                               $5, $6, ->19
          8    >   FETCH_LIST_R                                     $7      $6, 0
          9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  $7
         11        FETCH_LIST_R                                     $9      $6, 0
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  $9
         14        FETCH_LIST_R                                     $11     $6, 0
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  $11
         17        FREE                                                     $6
         18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $5
    6    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.34 ms | 1011 KiB | 15 Q