3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.56 ms | 1385 KiB | 17 Q