3v4l.org

run code in 300+ PHP versions simultaneously
<?php $teams=array('team_one','team_two','team_three'); $count = count($teams); for ($i = 0; $i < $count; $i++) { for($j = 0; $j < $count; $j++) { if ($i == $j) continue; echo $teams[$i] . " vs ". $teams[$j] . "\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/rdIFd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $teams, !1 = $count, !2 = $i, !3 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->20
    6     5    >   ASSIGN                                                   !3, 0
          6      > JMP                                                      ->17
    7     7    >   IS_EQUAL                                                 !2, !3
          8      > JMPZ                                                     ~9, ->10
          9    > > JMP                                                      ->16
    8    10    >   FETCH_DIM_R                                      ~10     !0, !2
         11        CONCAT                                           ~11     ~10, '+vs+'
         12        FETCH_DIM_R                                      ~12     !0, !3
         13        CONCAT                                           ~13     ~11, ~12
         14        CONCAT                                           ~14     ~13, '%0A'
         15        ECHO                                                     ~14
    6    16    >   PRE_INC                                                  !3
         17    >   IS_SMALLER                                               !3, !1
         18      > JMPNZ                                                    ~16, ->7
    5    19    >   PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, !1
         21      > JMPNZ                                                    ~18, ->5
   10    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1395 KiB | 13 Q