3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('id'=>2,'id'=>5,'id'=>9,'id'=>12); $ct=0; foreach ($array as $id) { if (++$ct%2==2) echo 'użytkownik id='.$id.' jest kolegą użytkownika id='; else echo $id.'<br/>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/MclXu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $ct, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
    5     2      > FE_RESET_R                                       $5      !0, ->15
          3    > > FE_FETCH_R                                               $5, !2, ->15
    7     4    >   PRE_INC                                          ~6      !1
          5        MOD                                              ~7      ~6, 2
          6        IS_EQUAL                                                 ~7, 2
          7      > JMPZ                                                     ~8, ->12
          8    >   CONCAT                                           ~9      'u%C5%BCytkownik+id%3D', !2
          9        CONCAT                                           ~10     ~9, '+jest+koleg%C4%85+u%C5%BCytkownika+id%3D'
         10        ECHO                                                     ~10
         11      > JMP                                                      ->14
    8    12    >   CONCAT                                           ~11     !2, '%3Cbr%2F%3E'
         13        ECHO                                                     ~11
    5    14    > > JMP                                                      ->3
         15    >   FE_FREE                                                  $5
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.16 ms | 1393 KiB | 13 Q