3v4l.org

run code in 500+ PHP versions simultaneously
<?php /* Считалка на основе слогов */ error_reporting(-1); mb_internal_encoding('UTF-8'); $total = 30; $skip = 5; $players = range(0, $total); unset($players[0]); $counter = 0; do { foreach ($players as $key => $player) { $counter++; if ($counter == $skip) { unset($players[$key]); $counter = NULL; } } } while (count($players) >= $skip); echo "Чай с тортиком будут пить игроки под номерами: ". implode($players, ', ');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 23
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 15
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 24
filename:       /in/vjliq
function name:  (null)
number of ops:  32
compiled vars:  !0 = $total, !1 = $skip, !2 = $players, !3 = $counter, !4 = $player, !5 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     -1
          2        DO_ICALL                                                     
    6     3        INIT_FCALL                                                   'mb_internal_encoding'
          4        SEND_VAL                                                     'UTF-8'
          5        DO_ICALL                                                     
    8     6        ASSIGN                                                       !0, 30
    9     7        ASSIGN                                                       !1, 5
   11     8        INIT_FCALL                                                   'range'
          9        SEND_VAL                                                     0
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $10     
         12        ASSIGN                                                       !2, $10
   12    13        UNSET_DIM                                                    !2, 0
   13    14        ASSIGN                                                       !3, 0
   16    15    > > FE_RESET_R                                           $13     !2, ->24
         16    > > FE_FETCH_R                                           ~14     $13, !4, ->24
         17    >   ASSIGN                                                       !5, ~14
   17    18        PRE_INC                                                      !3
   18    19        IS_EQUAL                                                     !3, !1
         20      > JMPZ                                                         ~17, ->23
   19    21    >   UNSET_DIM                                                    !2, !5
   20    22        ASSIGN                                                       !3, null
   16    23    > > JMP                                                          ->16
         24    >   FE_FREE                                                      $13
   23    25        COUNT                                                ~19     !2
         26        IS_SMALLER_OR_EQUAL                                          !1, ~19
         27      > JMPNZ                                                        ~20, ->15
   25    28    >   FRAMELESS_ICALL_2                implode             ~21     !2, '%2C+'
         29        CONCAT                                               ~22     '%D0%A7%D0%B0%D0%B9+%D1%81+%D1%82%D0%BE%D1%80%D1%82%D0%B8%D0%BA%D0%BE%D0%BC+%D0%B1%D1%83%D0%B4%D1%83%D1%82+%D0%BF%D0%B8%D1%82%D1%8C+%D0%B8%D0%B3%D1%80%D0%BE%D0%BA%D0%B8+%D0%BF%D0%BE%D0%B4+%D0%BD%D0%BE%D0%BC%D0%B5%D1%80%D0%B0%D0%BC%D0%B8%3A+', ~21
         30        ECHO                                                         ~22
         31      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
222.44 ms | 2102 KiB | 16 Q