3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a_very_very_long_variable_name = "short"; $arr = array($a_very_very_long_variable_name => "value"); $$a_very_very_long_variable_name = "key2"; $arr[$$a_very_very_long_variable_name] = "val2";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AXHEO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a_very_very_long_variable_name, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'short'
    4     1        INIT_ARRAY                                       ~3      'value', !0
          2        ASSIGN                                                   !1, ~3
    6     3        FETCH_W                      local               $5      !0
          4        ASSIGN                                                   $5, 'key2'
    7     5        FETCH_R                      local               ~7      !0
          6        ASSIGN_DIM                                               !1, ~7
          7        OP_DATA                                                  'val2'
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1392 KiB | 13 Q