3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pivot = []; $n = 0; for ($i = 1; $i <= 100; $i++) { $pivot[$i] = []; } for($i = 1; $i <= 100; $n++) { $user = &$pivot[rand($i, 100)]; $rand = rand(0, 100); $random = $rand != $user ? $rand : $rand + 1; while(array_key_exists($random, $user)) { $random++; } $user[] = $random; if($n == 100) { $i++; $n = 0; } } foreach($pivot as $key => $piv) { echo "INSERT INTO `following_pivot` (`uid`, `fid`) VALUES "; foreach($piv as $pi) { echo "(", $key, ", ", $pi, ")"; if($pi !== end($piv)) { echo ";"; } } echo ";"; } //print_r($pivot);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 11
Branch analysis from position: 42
2 jumps found. (Code = 77) Position 1 = 43, Position 2 = 63
Branch analysis from position: 43
2 jumps found. (Code = 78) Position 1 = 44, Position 2 = 63
Branch analysis from position: 44
2 jumps found. (Code = 77) Position 1 = 47, Position 2 = 60
Branch analysis from position: 47
2 jumps found. (Code = 78) Position 1 = 48, Position 2 = 60
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 59
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
Branch analysis from position: 59
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 60
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 30
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 11
Branch analysis from position: 42
Branch analysis from position: 11
Branch analysis from position: 39
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 30
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/Cs14a
function name:  (null)
number of ops:  65
compiled vars:  !0 = $pivot, !1 = $n, !2 = $i, !3 = $user, !4 = $rand, !5 = $random, !6 = $piv, !7 = $key, !8 = $pi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 0
    8     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->7
    9     4    >   ASSIGN_DIM                                               !0, !2
          5        OP_DATA                                                  <array>
    8     6        PRE_INC                                                  !2
          7    >   IS_SMALLER_OR_EQUAL                                      !2, 100
          8      > JMPNZ                                                    ~14, ->4
   12     9    >   ASSIGN                                                   !2, 1
         10      > JMP                                                      ->40
   13    11    >   INIT_FCALL                                               'rand'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 100
         14        DO_ICALL                                         $16     
         15        FETCH_DIM_W                                      $17     !0, $16
         16        ASSIGN_REF                                               !3, $17
   14    17        INIT_FCALL                                               'rand'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 100
         20        DO_ICALL                                         $19     
         21        ASSIGN                                                   !4, $19
   15    22        IS_NOT_EQUAL                                             !4, !3
         23      > JMPZ                                                     ~21, ->26
         24    >   QM_ASSIGN                                        ~22     !4
         25      > JMP                                                      ->28
         26    >   ADD                                              ~23     !4, 1
         27        QM_ASSIGN                                        ~22     ~23
         28    >   ASSIGN                                                   !5, ~22
   16    29      > JMP                                                      ->31
   17    30    >   PRE_INC                                                  !5
   16    31    >   ARRAY_KEY_EXISTS                                         !5, !3
         32      > JMPNZ                                                    ~26, ->30
   20    33    >   ASSIGN_DIM                                               !3
         34        OP_DATA                                                  !5
   22    35        IS_EQUAL                                                 !1, 100
         36      > JMPZ                                                     ~28, ->39
   23    37    >   PRE_INC                                                  !2
   24    38        ASSIGN                                                   !1, 0
   12    39    >   PRE_INC                                                  !1
         40    >   IS_SMALLER_OR_EQUAL                                      !2, 100
         41      > JMPNZ                                                    ~32, ->11
   28    42    > > FE_RESET_R                                       $33     !0, ->63
         43    > > FE_FETCH_R                                       ~34     $33, !6, ->63
         44    >   ASSIGN                                                   !7, ~34
   29    45        ECHO                                                     'INSERT+INTO+%60following_pivot%60+%28%60uid%60%2C+%60fid%60%29+VALUES+'
   30    46      > FE_RESET_R                                       $36     !6, ->60
         47    > > FE_FETCH_R                                               $36, !8, ->60
   31    48    >   ECHO                                                     '%28'
         49        ECHO                                                     !7
         50        ECHO                                                     '%2C+'
         51        ECHO                                                     !8
         52        ECHO                                                     '%29'
   32    53        INIT_FCALL                                               'end'
         54        SEND_REF                                                 !6
         55        DO_ICALL                                         $37     
         56        IS_NOT_IDENTICAL                                         !8, $37
         57      > JMPZ                                                     ~38, ->59
   33    58    >   ECHO                                                     '%3B'
   30    59    > > JMP                                                      ->47
         60    >   FE_FREE                                                  $36
   36    61        ECHO                                                     '%3B'
   28    62      > JMP                                                      ->43
         63    >   FE_FREE                                                  $33
   39    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.8 ms | 1400 KiB | 17 Q