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 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/qH2uT
function name:  (null)
number of ops:  14
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                                                      ->8
    6     3    >   ECHO                                                     '%2B'
          4        ECHO                                                     !1
    7     5        ADD                                              ~4      !0, !1
          6        ASSIGN                                                   !0, ~4
    4     7        PRE_INC                                                  !1
          8    >   IS_SMALLER_OR_EQUAL                                      !1, 10
          9      > JMPNZ                                                    ~7, ->3
   11    10    >   ECHO                                                     '%3D'
         11        ECHO                                                     !0
   12    12      > RETURN                                                   !0
   13    13*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.54 ms | 1393 KiB | 13 Q