3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.23 ms | 3184 KiB | 15 Q