3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types = 1); class Cl {} /** * @property int $prop */ $a = new #[\AllowDynamicProperties] class() extends Cl {}; $a->prop = 10; var_dump($a->prop); var_dump((new \ReflectionClass($a))->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v7YBE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   DECLARE_ANON_CLASS                                   <unknown> 'cl'
          1        NEW                                                  $2      $1
          2        DO_FCALL                                          0          
    8     3        ASSIGN                                                       !0, $2
   12     4        ASSIGN_OBJ                                                   !0, 'prop'
          5        OP_DATA                                                      10
   13     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_OBJ_R                                          ~6      !0, 'prop'
          8        SEND_VAL                                                     ~6
          9        DO_ICALL                                                     
   14    10        INIT_FCALL                                                   'var_dump'
         11        NEW                                                  $8      'ReflectionClass'
         12        SEND_VAR_EX                                                  !0
         13        DO_FCALL                                          0          
         14        INIT_METHOD_CALL                                             $8, 'getDocComment'
         15        DO_FCALL                                          0  $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Class Cl: [no user functions]
Class Cl@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.53 ms | 477 KiB | 8 Q