3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=(object) array('20'=>'abc'); echo $x->{20}; echo "\n"; $GLOBALS[20] = 'bbq'; echo ${20};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ291
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $20
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        ASSIGN                                                   !0, ~2
    5     2        FETCH_OBJ_R                                      ~4      !0, '20'
          3        ECHO                                                     ~4
    6     4        ECHO                                                     '%0A'
    8     5        FETCH_W                      global              $5      'GLOBALS'
          6        ASSIGN_DIM                                               $5, 20
          7        OP_DATA                                                  'bbq'
   10     8        ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
10.82 ms | 410 KiB | 7 Q