3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.39 ms | 1009 KiB | 13 Q