3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdObject(); $obj->name = "Nick"; $barr = array( 'baz' => 'name' ); echo $foo->$bar['baz'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jcqcm
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo, !1 = $obj, !2 = $barr, !3 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        ASSIGN_OBJ                                               !1, 'name'
          4        OP_DATA                                                  'Nick'
    6     5        ASSIGN                                                   !2, <array>
   10     6        FETCH_OBJ_R                                      ~9      !0, !3
          7        FETCH_DIM_R                                      ~10     ~9, 'baz'
          8        ECHO                                                     ~10
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.64 ms | 1392 KiB | 13 Q