3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $x; } A::$x = 123; $rp = new ReflectionProperty('A', 'x'); A::$x = 456; echo $rp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g4OLG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $rp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN_STATIC_PROP                                       'x', 'A'
          1        OP_DATA                                                  123
   10     2        NEW                                              $2      'ReflectionProperty'
          3        SEND_VAL_EX                                              'A'
          4        SEND_VAL_EX                                              'x'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   12     7        ASSIGN_STATIC_PROP                                       'x', 'A'
          8        OP_DATA                                                  456
   14     9        ECHO                                                     !0
   15    10      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1397 KiB | 13 Q