3v4l.org

run code in 500+ 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 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/CRXGf
function name:  (null)
number of ops:  16
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                                                          ->11
    7     3    >   INIT_FCALL                                                   'array_splice'
          4        SEND_REF                                                     !0
          5        SEND_VAL                                                     0
          6        SEND_VAL                                                     4
          7        DO_ICALL                                             $5      
          8        FRAMELESS_ICALL_2                implode             ~6      '%2C+', $5
          9        ASSIGN_DIM                                                   !1
         10        OP_DATA                                                      ~6
    6    11    > > JMPNZ                                                        !0, ->3
    9    12    >   INIT_FCALL                                                   'var_export'
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.27 ms | 1863 KiB | 15 Q