3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('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/ULp0K
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'FOO'
          2        SEND_VAL                                                     1
          3        DO_ICALL                                                     
   14     4        INIT_FCALL                                                   'var_dump'
          5        FETCH_STATIC_PROP_R              unknown             ~1      'w'
          6        SEND_VAL                                                     ~1
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
238.83 ms | 2637 KiB | 15 Q