3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { public function __construct(); } $m = new ReflectionMethod('I', '__construct'); var_dump($m->isConstructor());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fMCub
function name:  (null)
number of ops:  11
compiled vars:  !0 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'ReflectionMethod'
          1        SEND_VAL_EX                                                  'I'
          2        SEND_VAL_EX                                                  '__construct'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $1
    9     5        INIT_FCALL                                                   'var_dump'
          6        INIT_METHOD_CALL                                             !0, 'isConstructor'
          7        DO_FCALL                                          0  $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

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

End of function __construct

End of class I.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.05 ms | 3279 KiB | 14 Q