3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = new ReflectionClass('ArrayObject'); $constructorParameters = $r->getConstructor()->getParameters(); echo 'Constructor parameters of ArrayObject:'; foreach ($constructorParameters as $parameter) { echo '- ' . $parameter->getName() . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/FLCQg
function name:  (null)
number of ops:  20
compiled vars:  !0 = $r, !1 = $constructorParameters, !2 = $parameter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'ReflectionClass'
          1        SEND_VAL_EX                                              'ArrayObject'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        INIT_METHOD_CALL                                         !0, 'getConstructor'
          5        DO_FCALL                                      0  $6      
          6        INIT_METHOD_CALL                                         $6, 'getParameters'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !1, $7
    6     9        ECHO                                                     'Constructor+parameters+of+ArrayObject%3A'
    8    10      > FE_RESET_R                                       $9      !1, ->18
         11    > > FE_FETCH_R                                               $9, !2, ->18
    9    12    >   INIT_METHOD_CALL                                         !2, 'getName'
         13        DO_FCALL                                      0  $10     
         14        CONCAT                                           ~11     '-+', $10
         15        CONCAT                                           ~12     ~11, '%0A'
         16        ECHO                                                     ~12
    8    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $9
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.16 ms | 1393 KiB | 13 Q