3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rc = new ReflectionClass('ArrayIterator'); foreach ($rc->getMethods() as $method) { if ($method->isAbstract() || $method->isStatic()) continue; foreach ($method->getParameters() as $param) { var_dump($method->name); foreach ($method->getParameters() as $paramt) { var_dump([$param->name, $param->getDefaultValue()]); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 41
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 41
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 39
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 39
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 37
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 37
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 39
Branch analysis from position: 14
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/7JL83
function name:  (null)
number of ops:  43
compiled vars:  !0 = $rc, !1 = $method, !2 = $param, !3 = $paramt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'ReflectionClass'
          1        SEND_VAL_EX                                              'ArrayIterator'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    5     4        INIT_METHOD_CALL                                         !0, 'getMethods'
          5        DO_FCALL                                      0  $7      
          6      > FE_RESET_R                                       $8      $7, ->41
          7    > > FE_FETCH_R                                               $8, !1, ->41
    7     8    >   INIT_METHOD_CALL                                         !1, 'isAbstract'
          9        DO_FCALL                                      0  $9      
         10      > JMPNZ_EX                                         ~10     $9, ->14
         11    >   INIT_METHOD_CALL                                         !1, 'isStatic'
         12        DO_FCALL                                      0  $11     
         13        BOOL                                             ~10     $11
         14    > > JMPZ                                                     ~10, ->16
    8    15    > > JMP                                                      ->7
   10    16    >   INIT_METHOD_CALL                                         !1, 'getParameters'
         17        DO_FCALL                                      0  $12     
         18      > FE_RESET_R                                       $13     $12, ->39
         19    > > FE_FETCH_R                                               $13, !2, ->39
   12    20    >   INIT_FCALL                                               'var_dump'
         21        FETCH_OBJ_R                                      ~14     !1, 'name'
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                                 
   14    24        INIT_METHOD_CALL                                         !1, 'getParameters'
         25        DO_FCALL                                      0  $16     
         26      > FE_RESET_R                                       $17     $16, ->37
         27    > > FE_FETCH_R                                               $17, !3, ->37
   16    28    >   INIT_FCALL                                               'var_dump'
         29        FETCH_OBJ_R                                      ~18     !2, 'name'
         30        INIT_ARRAY                                       ~19     ~18
         31        INIT_METHOD_CALL                                         !2, 'getDefaultValue'
         32        DO_FCALL                                      0  $20     
         33        ADD_ARRAY_ELEMENT                                ~19     $20
         34        SEND_VAL                                                 ~19
         35        DO_ICALL                                                 
   14    36      > JMP                                                      ->27
         37    >   FE_FREE                                                  $17
   10    38      > JMP                                                      ->19
         39    >   FE_FREE                                                  $13
    5    40      > JMP                                                      ->7
         41    >   FE_FREE                                                  $8
   19    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.63 ms | 1400 KiB | 15 Q