3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replaceArgument($index, $argument) { if ($index < 0 || $index > count($this->arguments) - 1) { throw new \Exception(); } $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/kpF5B
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 = 14
Branch analysis from position: 11
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/kpF5B
function name:  replaceArgument
number of ops:  21
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, ->14
    6    11    >   NEW                                              $8      'Exception'
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $8
    9    14    >   FETCH_THIS                                       $10     
         15        FETCH_OBJ_W                                      $11     $10, 'arguments'
         16        ASSIGN_DIM                                               $11, !0
         17        OP_DATA                                                  !1
   11    18        FETCH_THIS                                       ~13     
         19      > RETURN                                                   ~13
   12    20*     > RETURN                                                   null

End of function replaceargument

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.91 ms | 1390 KiB | 14 Q