3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.94 ms | 1015 KiB | 15 Q