3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { } $o = new C(); $o->p = 0; $ro = new \ReflectionObject($o); foreach ($ro->getProperties() as $rp) { echo $rp->getType()->getName(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/fPM7s
function name:  (null)
number of ops:  21
compiled vars:  !0 = $o, !1 = $ro, !2 = $rp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN_OBJ                                               !0, 'p'
          4        OP_DATA                                                  0
    6     5        NEW                                              $7      'ReflectionObject'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
    7     9        INIT_METHOD_CALL                                         !1, 'getProperties'
         10        DO_FCALL                                      0  $10     
         11      > FE_RESET_R                                       $11     $10, ->19
         12    > > FE_FETCH_R                                               $11, !2, ->19
    8    13    >   INIT_METHOD_CALL                                         !2, 'getType'
         14        DO_FCALL                                      0  $12     
         15        INIT_METHOD_CALL                                         $12, 'getName'
         16        DO_FCALL                                      0  $13     
         17        ECHO                                                     $13
    7    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $11
    9    20      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1398 KiB | 13 Q