3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class something{ public static $var; protected function __construct(){ self::$var = 'test'; } } $val = something::$var; echo $val;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIDGu
function name:  (null)
number of ops:  4
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'var'
          1        ASSIGN                                                   !0, ~1
   15     2        ECHO                                                     !0
          3      > RETURN                                                   1

Class something:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIDGu
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_STATIC_PROP                                       'var'
          1        OP_DATA                                                  'test'
   10     2      > RETURN                                                   null

End of function __construct

End of class something.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.54 ms | 1392 KiB | 13 Q