3v4l.org

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

Class Entity: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.01 ms | 993 KiB | 13 Q