3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a; protected $b; private $c; } $foo = new Foo(); $foo->a = 1; unset($foo->a); $reflect = new ReflectionClass($foo); $props = $reflect->getProperties(); var_export($props); die;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/TvsRN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $foo, !1 = $reflect, !2 = $props
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    9     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  1
   11     5        UNSET_OBJ                                                !0, 'a'
   13     6        NEW                                              $7      'ReflectionClass'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $7
   14    10        INIT_METHOD_CALL                                         !1, 'getProperties'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !2, $10
   15    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
   16    16      > EXIT                                                     
         17*     > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.16 ms | 1394 KiB | 15 Q