3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ref = new ReflectionClass('ArrayObject'); var_dump(count($ref->getMethod('__construct')->getParameters()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MfKsQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ref
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $1      :23
         1        SEND_VAL_EX                                              'ArrayObject'
         2        DO_FCALL                                      0          
         3        QM_ASSIGN                                                !0
   4     4        INIT_FCALL                                               'var_dump'
         5        INIT_METHOD_CALL                                         !0, 'getMethod'
         6        SEND_VAL_EX                                              '__construct'
         7        DO_FCALL                                      0  $4      
         8        INIT_METHOD_CALL                                         $4, 'getParameters'
         9        DO_FCALL                                      0  $5      
        10        COUNT                                            ~6      $5
        11        SEND_VAL                                                 ~6
        12        DO_ICALL                                                 
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
52.38 ms | 410 KiB | 7 Q