3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['0' => 'foo', '1' => 'bar']; // - keys will be dumped as integers // - \array_list($arr) will return true \var_dump($arr, \array_is_list($arr)); $arr['03'] = 'baz'; // - only the new key will be quoted as a string // - \array_list($arr) will return false \var_dump($arr, \array_is_list($arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8cei8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'array_is_list'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    9     8        ASSIGN_DIM                                               !0, '03'
          9        OP_DATA                                                  'baz'
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        INIT_FCALL                                               'array_is_list'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.67 ms | 998 KiB | 15 Q