3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sumatoria($limite) { $tmp =0; for($i=0;$i<=$limite;$i++) { $tmp= $i+$tmp; } return $tmp; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98OgY
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Function sumatoria:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/98OgY
function name:  sumatoria
number of ops:  11
compiled vars:  !0 = $limite, !1 = $tmp, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->7
    7     4    >   ADD                                              ~5      !2, !1
          5        ASSIGN                                                   !1, ~5
    5     6        PRE_INC                                                  !2
          7    >   IS_SMALLER_OR_EQUAL                                      !2, !0
          8      > JMPNZ                                                    ~8, ->4
    9     9    > > RETURN                                                   !1
   10    10*     > RETURN                                                   null

End of function sumatoria

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.22 ms | 1385 KiB | 13 Q