3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.07 ms | 1394 KiB | 13 Q