3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public string $foo, $bar; } $cf = new ReflectionClass(A::class); foreach ($cf->getProperties() as $prop) { printf("%s = %s\n", $prop->getName(), (string)$prop->getType()); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Ss4XB
function name:  (null)
number of ops:  21
compiled vars:  !0 = $cf, !1 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    8     4        INIT_METHOD_CALL                                         !0, 'getProperties'
          5        DO_FCALL                                      0  $5      
          6      > FE_RESET_R                                       $6      $5, ->19
          7    > > FE_FETCH_R                                               $6, !1, ->19
    9     8    >   INIT_FCALL                                               'printf'
          9        SEND_VAL                                                 '%25s+%3D+%25s%0A'
         10        INIT_METHOD_CALL                                         !1, 'getName'
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        INIT_METHOD_CALL                                         !1, 'getType'
         14        DO_FCALL                                      0  $8      
         15        CAST                                          6  ~9      $8
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
    8    18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $6
   10    20      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.72 ms | 940 KiB | 16 Q