3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cadence = 1; for ($i = 0; $i < 10; $i += $cadence) { echo "{$i}\n"; if ($i === 1 || $i == 4) { 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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/evjQ8
function name:  (null)
number of ops:  23
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                                                      ->19
    6     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~4      !1, '%0A'
          5        ECHO                                                     ~4
    8     6        IS_IDENTICAL                                     ~5      !1, 1
          7      > JMPNZ_EX                                         ~5      ~5, ->10
          8    >   IS_EQUAL                                         ~6      !1, 4
          9        BOOL                                             ~5      ~6
         10    > > JMPZ                                                     ~5, ->18
    9    11    >   IS_IDENTICAL                                             !0, 1
         12      > JMPZ                                                     ~7, ->17
   10    13    >   PRE_DEC                                                  !1
   11    14        ASSIGN                                                   !0, 2
   12    15      > JMP                                                      ->18
    9    16*       JMP                                                      ->18
   14    17    > > JMP                                                      ->21
    5    18    >   ASSIGN_OP                                     1          !1, !0
         19    >   IS_SMALLER                                               !1, 10
         20      > JMPNZ                                                    ~11, ->3
   19    21    >   ECHO                                                     '%0ADone.%0A'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.16 ms | 1449 KiB | 13 Q