3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = new stdClass(); $n->dog['und'][0]['value'] = '12345'; $d = 'dog'; echo $n->$d[0]['value'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qvN7V
function name:  (null)
number of ops:  14
compiled vars:  !0 = $n, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        FETCH_OBJ_W                                      $5      !0, 'dog'
          4        FETCH_DIM_W                                      $6      $5, 'und'
          5        FETCH_DIM_W                                      $7      $6, 0
          6        ASSIGN_DIM                                               $7, 'value'
          7        OP_DATA                                                  '12345'
    5     8        ASSIGN                                                   !1, 'dog'
    6     9        FETCH_OBJ_R                                      ~10     !0, !1
         10        FETCH_DIM_R                                      ~11     ~10, 0
         11        FETCH_DIM_R                                      ~12     ~11, 'value'
         12        ECHO                                                     ~12
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1393 KiB | 13 Q