3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1000; while ($i > 0): // dokud je $i větší než nula, prováděj následující příkazy echo "$i<br>"; $i--; endwhile; // tento cyklus sestupně vypíše čísla od 1000 do 1 for ($i = 1000; $i > 0; $i--): // totéž jako předchozí příklad echo "$i<br>"; // protože je v těle cyklu jen jeden příkaz, šlo by napsat jen for ($i = 1000; $i > 0; $i--) echo "$i<br>"; endfor;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
Branch analysis from position: 10
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/Uhdi9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    3     1      > JMP                                                      ->6
    4     2    >   NOP                                                      
          3        FAST_CONCAT                                      ~2      !0, '%3Cbr%3E'
          4        ECHO                                                     ~2
    5     5        PRE_DEC                                                  !0
    3     6    >   IS_SMALLER                                               0, !0
          7      > JMPNZ                                                    ~4, ->2
    7     8    >   ASSIGN                                                   !0, 1000
          9      > JMP                                                      ->14
    8    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~6      !0, '%3Cbr%3E'
         12        ECHO                                                     ~6
    7    13        PRE_DEC                                                  !0
         14    >   IS_SMALLER                                               0, !0
         15      > JMPNZ                                                    ~8, ->10
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.16 ms | 1393 KiB | 13 Q