3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static function doSomething() { echo "Did it!\n"; } } $r = new ReflectionMethod('MyClass', 'doSomething'); $args = array(); $r->invoke('WTF?', array()); $r->invokeArgs('MyClass', $args);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e9h1S
function name:  (null)
number of ops:  15
compiled vars:  !0 = $r, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'ReflectionMethod'
          1        SEND_VAL_EX                                              'MyClass'
          2        SEND_VAL_EX                                              'doSomething'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   12     5        ASSIGN                                                   !1, <array>
   13     6        INIT_METHOD_CALL                                         !0, 'invoke'
          7        SEND_VAL_EX                                              'WTF%3F'
          8        SEND_VAL_EX                                              <array>
          9        DO_FCALL                                      0          
   14    10        INIT_METHOD_CALL                                         !0, 'invokeArgs'
         11        SEND_VAL_EX                                              'MyClass'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class MyClass:
Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e9h1S
function name:  doSomething
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Did+it%21%0A'
    8     1      > RETURN                                                   null

End of function dosomething

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.07 ms | 986 KiB | 13 Q