3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { /** a */ public /** b */ int /** c */ $property /** d */; } echo (new ReflectionClass('A'))->getProperties()[0]->getDocComment();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PZFHD
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $0      'ReflectionClass'
          1        SEND_VAL_EX                                                  'A'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'getProperties'
          4        DO_FCALL                                          0  $2      
          5        FETCH_DIM_R                                          ~3      $2, 0
          6        INIT_METHOD_CALL                                             ~3, 'getDocComment'
          7        DO_FCALL                                          0  $4      
          8        ECHO                                                         $4
          9      > RETURN                                                       1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.45 ms | 1306 KiB | 13 Q