3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public string $name; } for ($i = 0; $i < 10000; $i++) { $rp = new ReflectionProperty('User', 'name'); echo $rp->getType()->getName(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/tfOCo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $rp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->13
    8     2    >   NEW                                              $3      'ReflectionProperty'
          3        SEND_VAL_EX                                              'User'
          4        SEND_VAL_EX                                              'name'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $3
    9     7        INIT_METHOD_CALL                                         !1, 'getType'
          8        DO_FCALL                                      0  $6      
          9        INIT_METHOD_CALL                                         $6, 'getName'
         10        DO_FCALL                                      0  $7      
         11        ECHO                                                     $7
    7    12        PRE_INC                                                  !0
         13    >   IS_SMALLER                                               !0, 10000
         14      > JMPNZ                                                    ~9, ->2
   10    15    > > RETURN                                                   1

Class User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.78 ms | 1393 KiB | 13 Q