3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["1", "2", "3", "4", "5"]; var_export( array_chunk($array, count($array) + 1 >> 1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J9S16
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'array_chunk'
          3        SEND_VAR                                                 !0
          4        COUNT                                            ~2      !0
          5        ADD                                              ~3      ~2, 1
          6        SR                                               ~4      ~3, 1
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
    5    10        DO_ICALL                                                 
    7    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.93 ms | 1080 KiB | 15 Q