3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cadence = 1; for ($i = 0; $i < 10; $i += $cadence) { echo "{$i}\n"; if ($i === 0) { if ($cadence === 1) { $i--; $cadence = 2; continue; } else { break; } } } echo "\nDone.\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 15
filename:       /in/gf04X
function name:  (null)
number of ops:  20
compiled vars:  !0 = $cadence, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    6     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~4      !1, '%0A'
          5        ECHO                                                     ~4
    8     6        IS_IDENTICAL                                             !1, 0
          7      > JMPZ                                                     ~5, ->15
    9     8    >   IS_IDENTICAL                                             !0, 1
          9      > JMPZ                                                     ~6, ->14
   10    10    >   PRE_DEC                                                  !1
   11    11        ASSIGN                                                   !0, 2
   12    12      > JMP                                                      ->15
    9    13*       JMP                                                      ->15
   14    14    > > JMP                                                      ->18
    5    15    >   ASSIGN_OP                                     1          !1, !0
         16    >   IS_SMALLER                                               !1, 10
         17      > JMPNZ                                                    ~10, ->3
   19    18    >   ECHO                                                     '%0ADone.%0A'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.08 ms | 1448 KiB | 13 Q