3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.58 ms | 1394 KiB | 15 Q