3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.07 ms | 1970 KiB | 13 Q