3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: text/plain; charset=utf-8"); mb_internal_encoding('utf-8'); $total = []; $skip = 5; For ($i=1; $i<31; $i++){ $total[$i-1]=$i; } $schet=0; while (count($total)>= $skip) { foreach ($total as $key => $value) { $schet+=1; If ($schet==5) { unset($total[$key]); $schet=0; } } } echo "Выигрышные места: "; foreach ($total as $key => $value) { echo "$value, "; } ?>
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 = 10
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 39
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 39
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 27
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 26
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
Branch analysis from position: 18
Branch analysis from position: 27
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
filename:       /in/LB3b5
function name:  (null)
number of ops:  41
compiled vars:  !0 = $total, !1 = $skip, !2 = $i, !3 = $schet, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'mb_internal_encoding'
          4        SEND_VAL                                                 'utf-8'
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !0, <array>
    6     7        ASSIGN                                                   !1, 5
    8     8        ASSIGN                                                   !2, 1
          9      > JMP                                                      ->14
    9    10    >   SUB                                              ~11     !2, 1
         11        ASSIGN_DIM                                               !0, ~11
         12        OP_DATA                                                  !2
    8    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 31
         15      > JMPNZ                                                    ~14, ->10
   11    16    >   ASSIGN                                                   !3, 0
   12    17      > JMP                                                      ->28
   14    18    > > FE_RESET_R                                       $16     !0, ->27
         19    > > FE_FETCH_R                                       ~17     $16, !4, ->27
         20    >   ASSIGN                                                   !5, ~17
   16    21        ASSIGN_OP                                     1          !3, 1
   17    22        IS_EQUAL                                                 !3, 5
         23      > JMPZ                                                     ~20, ->26
   19    24    >   UNSET_DIM                                                !0, !5
   20    25        ASSIGN                                                   !3, 0
   14    26    > > JMP                                                      ->19
         27    >   FE_FREE                                                  $16
   12    28    >   COUNT                                            ~22     !0
         29        IS_SMALLER_OR_EQUAL                                      !1, ~22
         30      > JMPNZ                                                    ~23, ->18
   24    31    >   ECHO                                                     '%D0%92%D1%8B%D0%B8%D0%B3%D1%80%D1%8B%D1%88%D0%BD%D1%8B%D0%B5+%D0%BC%D0%B5%D1%81%D1%82%D0%B0%3A+'
   25    32      > FE_RESET_R                                       $24     !0, ->39
         33    > > FE_FETCH_R                                       ~25     $24, !4, ->39
         34    >   ASSIGN                                                   !5, ~25
   26    35        NOP                                                      
         36        FAST_CONCAT                                      ~27     !4, '%2C+'
         37        ECHO                                                     ~27
   25    38      > JMP                                                      ->33
         39    >   FE_FREE                                                  $24
   28    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.22 ms | 1004 KiB | 15 Q