3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1393 KiB | 13 Q