3v4l.org

run code in 300+ PHP versions simultaneously
<?php function suma() { $sum=0; for($i=0;$i<func_num_args();$i++) { $sum += func_get_arg($i); } return $sum; } print suma(1,2,3,4,5,6,7); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SOJsN
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'suma'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 5
          6        SEND_VAL                                                 6
          7        SEND_VAL                                                 7
          8        DO_FCALL                                      0  $0      
          9        ECHO                                                     $0
   16    10      > RETURN                                                   1

Function suma:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/SOJsN
function name:  suma
number of ops:  13
compiled vars:  !0 = $sum, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    7     3    >   INIT_FCALL                                               'func_get_arg'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN_OP                                     1          !0, $4
    5     7        PRE_INC                                                  !1
          8    >   FUNC_NUM_ARGS                                    ~7      
          9        IS_SMALLER                                               !1, ~7
         10      > JMPNZ                                                    ~8, ->3
   11    11    > > RETURN                                                   !0
   12    12*     > RETURN                                                   null

End of function suma

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.81 ms | 1398 KiB | 16 Q