3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, 2, 3, 4, 5, 6, 7, 8, 9]; $result = []; while ($array) { $result[] = implode(', ', array_splice($array, 0, 4)); } var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/CRXGf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    6     2      > JMP                                                      ->14
    7     3    >   INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%2C+'
          5        INIT_FCALL                                               'array_splice'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  $6
    6    14    > > JMPNZ                                                    !0, ->3
    9    15    >   INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1003 KiB | 16 Q