3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); #[\AllowDynamicProperties] class Cl { } print_r((new ReflectionClass(Cl::class))->getAttributes()); class Cl2 { public $p; } print_r((new ReflectionClass(Cl2::class))->getProperties());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S6cUD
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'print_r'
          1        NEW                                              $0      'ReflectionClass'
          2        SEND_VAL_EX                                              'Cl'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'getAttributes'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   12     8        INIT_FCALL                                               'print_r'
          9        NEW                                              $4      'ReflectionClass'
         10        SEND_VAL_EX                                              'Cl2'
         11        DO_FCALL                                      0          
         12        INIT_METHOD_CALL                                         $4, 'getProperties'
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class Cl: [no user functions]
Class Cl2: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.04 ms | 996 KiB | 14 Q