3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Kitchen { private $yummy = 'cake'; } $kitchen = new Kitchen(); $sweetsThief = new ReflectionProperty($kitchen, 'yummy'); $sweetsThief->setAccessible(true); var_dump($sweetsThief($sweetsThief->getValue($kitchen)));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/4thtl
function name:  (null)
number of ops:  22
compiled vars:  !0 = $kitchen, !1 = $sweetsThief
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        NEW                                              $3      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
   9     4        NEW                                              $6      :-4
         5        SEND_VAR_EX                                              !0
         6        SEND_VAL_EX                                              'yummy'
         7        DO_FCALL                                      0          
         8        ASSIGN                                                   !1, $6
  11     9        INIT_METHOD_CALL                                         !1, 'setAccessible'
        10        SEND_VAL_EX                                              <true>
        11        DO_FCALL                                      0          
  13    12        INIT_FCALL                                               'var_dump'
        13        INIT_DYNAMIC_CALL                                        !1
        14        INIT_METHOD_CALL                                         !1, 'getValue'
        15        SEND_VAR_EX                                              !0
        16        DO_FCALL                                      0  $10     
        17        SEND_VAR_NO_REF                               4          $10
        18        DO_FCALL                                      0  $11     
        19        SEND_VAR                                                 $11
        20        DO_ICALL                                                 
        21      > RETURN                                                   1

Class Kitchen: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0