3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $data = new stdClass(); $data->test_img = 'asd'; $v = array('test_img'); var_dump($data->$v[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XSg1o
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        ASSIGN_OBJ                                               !0, 'test_img'
          4        OP_DATA                                                  'asd'
    8     5        ASSIGN                                                   !1, <array>
    9     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~7      !0, !1
          8        FETCH_DIM_R                                      ~8      ~7, 0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.92 ms | 1385 KiB | 15 Q