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) { $cadence = 2; } else { break; } } } echo "\nDone.\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 13
filename:       /in/P7nLB
function name:  (null)
number of ops:  18
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                                                      ->14
    6     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~4      !1, '%0A'
          5        ECHO                                                     ~4
    8     6        IS_IDENTICAL                                             !1, 0
          7      > JMPZ                                                     ~5, ->13
    9     8    >   IS_IDENTICAL                                             !0, 1
          9      > JMPZ                                                     ~6, ->12
   10    10    >   ASSIGN                                                   !0, 2
    9    11      > JMP                                                      ->13
   12    12    > > JMP                                                      ->16
    5    13    >   ASSIGN_OP                                     1          !1, !0
         14    >   IS_SMALLER                                               !1, 10
         15      > JMPNZ                                                    ~9, ->3
   17    16    >   ECHO                                                     '%0ADone.%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.48 ms | 1448 KiB | 13 Q