3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replaceArgument($index, $argument) { if ($index < 0 || $index > count($this->arguments) - 1) { throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1)); } $this->arguments[$index] = $argument; return $this; } replaceArgument(1, null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OqGqZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'replaceargument'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 null
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function replaceargument:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 24
Branch analysis from position: 11
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/OqGqZ
function name:  replaceArgument
number of ops:  31
compiled vars:  !0 = $index, !1 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_SMALLER                                       ~2      !0, 0
          3      > JMPNZ_EX                                         ~2      ~2, ->10
          4    >   FETCH_THIS                                       $3      
          5        FETCH_OBJ_R                                      ~4      $3, 'arguments'
          6        COUNT                                            ~5      ~4
          7        SUB                                              ~6      ~5, 1
          8        IS_SMALLER                                       ~7      ~6, !0
          9        BOOL                                             ~2      ~7
         10    > > JMPZ                                                     ~2, ->24
    6    11    >   NEW                                              $8      'OutOfBoundsException'
         12        INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 'The+index+%22%25d%22+is+not+in+the+range+%5B0%2C+%25d%5D.'
         14        SEND_VAR                                                 !0
         15        FETCH_THIS                                       $9      
         16        FETCH_OBJ_R                                      ~10     $9, 'arguments'
         17        COUNT                                            ~11     ~10
         18        SUB                                              ~12     ~11, 1
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        SEND_VAR_NO_REF_EX                                       $13
         22        DO_FCALL                                      0          
         23      > THROW                                         0          $8
    9    24    >   FETCH_THIS                                       $15     
         25        FETCH_OBJ_W                                      $16     $15, 'arguments'
         26        ASSIGN_DIM                                               $16, !0
         27        OP_DATA                                                  !1
   11    28        FETCH_THIS                                       ~18     
         29      > RETURN                                                   ~18
   12    30*     > RETURN                                                   null

End of function replaceargument

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.29 ms | 1403 KiB | 16 Q