3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ReflectMe { /** * Eine nette Variable * * @var bool */ private $var = true; } $reflectionClass = new ReflectionClass((new ReflectMe())); var_dump($reflectionClass); var_dump($reflectionClass->getProperty('var')->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SXMr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $reflectionClass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'ReflectionClass'
          1        NEW                                              $2      'ReflectMe'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   15     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'getProperty'
         11        SEND_VAL_EX                                              'var'
         12        DO_FCALL                                      0  $7      
         13        INIT_METHOD_CALL                                         $7, 'getDocComment'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class ReflectMe: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.49 ms | 1394 KiB | 15 Q