3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO=1; class bar { static $v = [ FOO => 1, FOOX => 1, ]; static $w; } // If following line is commentted out, undefined constant error disappears. //var_dump(bar::$w);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gi3CO
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'FOO', 1
   14     1      > RETURN                                                   1

Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1392 KiB | 13 Q