3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.37 ms | 997 KiB | 15 Q