3v4l.org

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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.39 ms | 1392 KiB | 13 Q