3v4l.org

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

Class Kitchen: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.94 ms | 938 KiB | 14 Q