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/b0pqR
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     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
   15    10      > RETURN                                                   1

Function suma:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b0pqR
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                                                      ->9
    7     3    >   INIT_FCALL                                               'func_get_arg'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN_OP                                     1          !0, $4
    8     7      > RETURN                                                   !0
    5     8*       PRE_INC                                                  !1
          9    >   FUNC_NUM_ARGS                                    ~7      
         10        IS_SMALLER                                               !1, ~7
         11      > JMPNZ                                                    ~8, ->3
   11    12    > > RETURN                                                   null

End of function suma

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.94 ms | 1397 KiB | 16 Q