3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; for ($i=1; $i<=10; $i++) { echo +$i, ""; $total = $total + $i; } echo $total . "="; return $total; ?>
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 = 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/7OlRU
function name:  (null)
number of ops:  15
compiled vars:  !0 = $total, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->9
    6     3    >   MUL                                              ~4      !1, 1
          4        ECHO                                                     ~4
          5        ECHO                                                     ''
    7     6        ADD                                              ~5      !0, !1
          7        ASSIGN                                                   !0, ~5
    4     8        PRE_INC                                                  !1
          9    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         10      > JMPNZ                                                    ~8, ->3
   11    11    >   CONCAT                                           ~9      !0, '%3D'
         12        ECHO                                                     ~9
   12    13      > RETURN                                                   !0
   13    14*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.05 ms | 1393 KiB | 13 Q