3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class A { const A = ['a']; } A::A[0]; // syntax error (A::A)[0]; // syntax error too
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bru5v
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_DIM_R                                      ~0      <array>, 0
          1        FREE                                                     ~0
    6     2        FETCH_DIM_R                                      ~1      <array>, 0
          3        FREE                                                     ~1
          4      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.91 ms | 1396 KiB | 13 Q