3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $bar; } $instance = new Foo; unset($instance->bar); var_dump((new ReflectionProperty(Foo::class, 'bar'))->getValue($instance));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vdOjh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $instance
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   10     3        UNSET_OBJ                                                    !0, 'bar'
   12     4        INIT_FCALL                                                   'var_dump'
          5        NEW                                                  $4      'ReflectionProperty'
          6        SEND_VAL_EX                                                  'Foo'
          7        SEND_VAL_EX                                                  'bar'
          8        DO_FCALL                                          0          
          9        INIT_METHOD_CALL                                             $4, 'getValue'
         10        SEND_VAR_EX                                                  !0
         11        DO_FCALL                                          0  $6      
         12        SEND_VAR                                                     $6
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.92 ms | 2405 KiB | 14 Q