3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass; $field_name = 'field_my_field'; $row->{$field_name}[$delta] = 'value'; // This works just fine. echo $row->$fieldname[0]; $title_field = $field_name . ':title'; $row->{$field_name . ':title'} = array($delta => 'title');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dEhdn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $row, !1 = $field_name, !2 = $delta, !3 = $fieldname, !4 = $title_field
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    3     3        ASSIGN                                                   !1, 'field_my_field'
    5     4        FETCH_OBJ_W                                      $9      !0, !1
          5        ASSIGN_DIM                                               $9, !2
          6        OP_DATA                                                  'value'
    6     7        FETCH_OBJ_R                                      ~11     !0, !3
          8        FETCH_DIM_R                                      ~12     ~11, 0
          9        ECHO                                                     ~12
    8    10        CONCAT                                           ~13     !1, '%3Atitle'
         11        ASSIGN                                                   !4, ~13
    9    12        CONCAT                                           ~15     !1, '%3Atitle'
         13        INIT_ARRAY                                       ~17     'title', !2
         14        ASSIGN_OBJ                                               !0, ~15
         15        OP_DATA                                                  ~17
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.21 ms | 1393 KiB | 13 Q