3v4l.org

run code in 300+ PHP versions simultaneously
<?php $largegroups = ['','','','']; $c = 0; foreach ($largegroups as $key => $users) { // loops 4 times for ($i = 1; $i <= 4; $i++) { ++$c; $c = str_pad($c, 2, '0', STR_PAD_LEFT); echo "\n".$groupname = 'Group ' . $c; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
Branch analysis from position: 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/aUDd2
function name:  (null)
number of ops:  25
compiled vars:  !0 = $largegroups, !1 = $c, !2 = $users, !3 = $key, !4 = $i, !5 = $groupname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
    4     2      > FE_RESET_R                                       $8      !0, ->23
          3    > > FE_FETCH_R                                       ~9      $8, !2, ->23
          4    >   ASSIGN                                                   !3, ~9
    5     5        ASSIGN                                                   !4, 1
          6      > JMP                                                      ->20
    6     7    >   PRE_INC                                                  !1
    7     8        INIT_FCALL                                               'str_pad'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 2
         11        SEND_VAL                                                 '0'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !1, $13
    8    15        CONCAT                                           ~15     'Group+', !1
         16        ASSIGN                                           ~16     !5, ~15
         17        CONCAT                                           ~17     '%0A', ~16
         18        ECHO                                                     ~17
    5    19        PRE_INC                                                  !4
         20    >   IS_SMALLER_OR_EQUAL                                      !4, 4
         21      > JMPNZ                                                    ~19, ->7
    4    22    > > JMP                                                      ->3
         23    >   FE_FREE                                                  $8
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.93 ms | 999 KiB | 14 Q