3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = range(0, 100); array_pop($array); unset($array[array_key_last($array)]); $array = array_slice($array, 0, -1, preserve_keys: true); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bEaBT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     0
          2        SEND_VAL                                                     100
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    5     5        INIT_FCALL                                                   'array_pop'
          6        SEND_REF                                                     !0
          7        DO_ICALL                                                     
    7     8        INIT_FCALL                                                   'array_key_last'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                             $4      
         11        UNSET_DIM                                                    !0, $4
    9    12        INIT_FCALL                                                   'array_slice'
         13        SEND_VAR                                                     !0
         14        SEND_VAL                                                     0
         15        SEND_VAL                                                     -1
         16        SEND_VAL                                                     <true>
         17        DO_ICALL                                             $5      
         18        ASSIGN                                                       !0, $5
   11    19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.55 ms | 1468 KiB | 17 Q