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->invokeArgs($test, array()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
Branch analysis from position: 10
filename:       /in/ElLsl
function name:  (null)
number of ops:  18
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                                                      ->15
   11    10    >   INIT_METHOD_CALL                                         !1, 'invokeArgs'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAL_EX                                              <array>
         13        DO_FCALL                                      0          
   10    14        PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !2, 100000
         16      > JMPNZ                                                    ~12, ->10
   12    17    > > RETURN                                                   1

Class Test:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ElLsl
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:
154.74 ms | 939 KiB | 14 Q