3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.94 ms | 1394 KiB | 17 Q