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/cN5n4
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'FOO', 1
   14     1        INIT_FCALL                                               'var_dump'
          2        FETCH_STATIC_PROP_R          global lock         ~0      'w'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.4 ms | 1393 KiB | 15 Q