3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { const p = "real property"; } $foo = array(); $foo['bar'] = new bla; $baz = 'p'; echo $foo['bar']::$baz;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aBStP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1        NEW                                              $4      'bla'
          2        DO_FCALL                                      0          
          3        ASSIGN_DIM                                               !0, 'bar'
          4        OP_DATA                                                  $4
    9     5        ASSIGN                                                   !1, 'p'
   10     6        FETCH_DIM_R                                      ~7      !0, 'bar'
          7        FETCH_CLASS                                   0  $8      ~7
          8        FETCH_STATIC_PROP_R          global lock         ~9      'baz'
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Class bla: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.59 ms | 1392 KiB | 13 Q