3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $var1 = true; } class Bar extends Foo { public $var = 'abc'; } $bar = new Bar(); var_dump((new ReflectionClass('Bar'))->getProperties());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H8hsa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Bar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'var_dump'
          4        NEW                                              $4      'ReflectionClass'
          5        SEND_VAL_EX                                              'Bar'
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $4, 'getProperties'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.51 ms | 1394 KiB | 15 Q