3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar = ['foo' => 1, 'bar' => 2]; } $item = ['name' => 'bar']; echo Foo::$bar[$item['name']];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqZOE
function name:  (null)
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        FETCH_DIM_R                                      ~3      !0, 'name'
          2        FETCH_STATIC_PROP_R          unknown             ~2      'bar'
          3        FETCH_DIM_R                                      ~4      ~2, ~3
          4        ECHO                                                     ~4
          5      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.77 ms | 939 KiB | 14 Q