3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass; $field_name = 'field_my_field'; $row->{$field_name}[$delta] = $url; // 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/19OWi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $row, !1 = $field_name, !2 = $delta, !3 = $url, !4 = $fieldname, !5 = $title_field, !6 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $7      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $7
    3     3        ASSIGN                                                   !1, 'field_my_field'
    5     4        FETCH_OBJ_W                                      $11     !0, !1
          5        ASSIGN_DIM                                               $11, !2
          6        OP_DATA                                                  !3
    6     7        FETCH_OBJ_R                                      ~13     !0, !4
          8        FETCH_DIM_R                                      ~14     ~13, 0
          9        ECHO                                                     ~14
    8    10        CONCAT                                           ~15     !1, '%3Atitle'
         11        ASSIGN                                                   !5, ~15
    9    12        CONCAT                                           ~17     !1, '%3Atitle'
         13        INIT_ARRAY                                       ~19     !6, !2
         14        ASSIGN_OBJ                                               !0, ~17
         15        OP_DATA                                                  ~19
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.34 ms | 1393 KiB | 13 Q