3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Broken { function foo(){} } $func = (new Broken)->foo(...); $rm = new ReflectionMethod(new Broken, 'foo'); $rm->invoke($func);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4UiEW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $func, !1 = $rm
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'Broken'
          1        DO_FCALL                                          0          
          2        INIT_METHOD_CALL                                             $2, 'foo'
          3        CALLABLE_CONVERT                                     ~4      
          4        ASSIGN                                                       !0, ~4
    9     5        NEW                                                  $6      'ReflectionMethod'
          6        NEW                                                  $7      'Broken'
          7        DO_FCALL                                          0          
          8        SEND_VAR_NO_REF_EX                                           $7
          9        SEND_VAL_EX                                                  'foo'
         10        DO_FCALL                                          0          
         11        ASSIGN                                                       !1, $6
   11    12        INIT_METHOD_CALL                                             !1, 'invoke'
         13        SEND_VAR_EX                                                  !0
         14        DO_FCALL                                          0          
         15      > RETURN                                                       1

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

End of function foo

End of class Broken.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.8 ms | 1392 KiB | 13 Q