3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function _onInit() { echo 'inited'; } } try { $rm = new ReflectionMethod('Foo','_onInit'); }catch(Exception $e) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
filename:       /in/XMUY2
function name:  (null)
number of ops:  8
compiled vars:  !0 = $rm, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'ReflectionMethod'
          1        SEND_VAL_EX                                              'Foo'
          2        SEND_VAL_EX                                              '_onInit'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
          5      > JMP                                                      ->7
   12     6  E > > CATCH                                       last         'Exception'
   13     7    > > RETURN                                                   1

Class Foo:
Function _oninit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XMUY2
function name:  _onInit
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'inited'
    7     1      > RETURN                                                   null

End of function _oninit

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.48 ms | 1393 KiB | 13 Q