3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo'first 10 no.are:'; $n=0;$res=0; for($n=0;$n<=30;$n++) $res=$res+$n; echo "$res"; ?>
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 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/aUO6e
function name:  (null)
number of ops:  13
compiled vars:  !0 = $n, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'first+10++no.are%3A'
    3     1        ASSIGN                                                   !0, 0
          2        ASSIGN                                                   !1, 0
    4     3        ASSIGN                                                   !0, 0
          4      > JMP                                                      ->8
    5     5    >   ADD                                              ~5      !1, !0
          6        ASSIGN                                                   !1, ~5
    4     7        PRE_INC                                                  !0
          8    >   IS_SMALLER_OR_EQUAL                                      !0, 30
          9      > JMPNZ                                                    ~8, ->5
    6    10    >   CAST                                          6  ~9      !1
         11        ECHO                                                     ~9
    8    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.29 ms | 1393 KiB | 13 Q