3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1, 10); $removed = array_splice($array, 6, -7, array(42)); var_dump($removed, $array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eUuda
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $removed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'array_splice'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 6
          8        SEND_VAL                                                 -7
          9        SEND_VAL                                                 <array>
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.7 ms | 1394 KiB | 19 Q