3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar = 'test'; } var_dump(Foo::$bar); $reflect = new ReflectionClass('Foo'); $reflect->setStaticPropertyValue('baz', 'yet another test'); var_dump(Foo::$baz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uhiDM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $reflect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~1      'bar'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   11     4        NEW                                              $3      'ReflectionClass'
          5        SEND_VAL_EX                                              'Foo'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
   12     8        INIT_METHOD_CALL                                         !0, 'setStaticPropertyValue'
          9        SEND_VAL_EX                                              'baz'
         10        SEND_VAL_EX                                              'yet+another+test'
         11        DO_FCALL                                      0          
   13    12        INIT_FCALL                                               'var_dump'
         13        FETCH_STATIC_PROP_R          unknown             ~7      'baz'
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1394 KiB | 15 Q