3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function method() {} } $test = new Test(); $method = new ReflectionMethod($test, 'method'); for ($i=0; $i<1e5; $i++) { $method->invoke($test); }
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 = 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/PlnI0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $method, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        NEW                                              $6      'ReflectionMethod'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAL_EX                                              'method'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   10     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->14
   11    10    >   INIT_METHOD_CALL                                         !1, 'invoke'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
   10    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 100000
         15      > JMPNZ                                                    ~12, ->10
   12    16    > > RETURN                                                   1

Class Test:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PlnI0
function name:  method
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function method

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.69 ms | 1394 KiB | 13 Q