3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $php5 = 'working'; } $b = array( array('test' => 'php5') ); $c = 0; $a = new A(); echo $a->$b[$c]['test'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j4JPR
function name:  (null)
number of ops:  10
compiled vars:  !0 = $b, !1 = $c, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 0
   13     2        NEW                                              $5      'A'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $5
   15     5        FETCH_OBJ_R                                      ~8      !2, !0
          6        FETCH_DIM_R                                      ~9      ~8, !1
          7        FETCH_DIM_R                                      ~10     ~9, 'test'
          8        ECHO                                                     ~10
          9      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.16 ms | 1384 KiB | 13 Q