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 $piv => $key) { //echo "INSERT INTO `following_pivot` (`uid`, `fid`) VALUES ("; var_dump($piv); var_dump($key); //foreach($piv as $pi) { // echo $key, ", ", $pi, PHP_EOL; //} } //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 = 52
Branch analysis from position: 43
2 jumps found. (Code = 78) Position 1 = 44, Position 2 = 52
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
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/pMs6K
function name:  (null)
number of ops:  54
compiled vars:  !0 = $pivot, !1 = $n, !2 = $i, !3 = $user, !4 = $rand, !5 = $random, !6 = $key, !7 = $piv
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                                                    ~13, ->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                                         $15     
         15        FETCH_DIM_W                                      $16     !0, $15
         16        ASSIGN_REF                                               !3, $16
   14    17        INIT_FCALL                                               'rand'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 100
         20        DO_ICALL                                         $18     
         21        ASSIGN                                                   !4, $18
   15    22        IS_NOT_EQUAL                                             !4, !3
         23      > JMPZ                                                     ~20, ->26
         24    >   QM_ASSIGN                                        ~21     !4
         25      > JMP                                                      ->28
         26    >   ADD                                              ~22     !4, 1
         27        QM_ASSIGN                                        ~21     ~22
         28    >   ASSIGN                                                   !5, ~21
   16    29      > JMP                                                      ->31
   17    30    >   PRE_INC                                                  !5
   16    31    >   ARRAY_KEY_EXISTS                                         !5, !3
         32      > JMPNZ                                                    ~25, ->30
   20    33    >   ASSIGN_DIM                                               !3
         34        OP_DATA                                                  !5
   22    35        IS_EQUAL                                                 !1, 100
         36      > JMPZ                                                     ~27, ->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                                                    ~31, ->11
   28    42    > > FE_RESET_R                                       $32     !0, ->52
         43    > > FE_FETCH_R                                       ~33     $32, !6, ->52
         44    >   ASSIGN                                                   !7, ~33
   30    45        INIT_FCALL                                               'var_dump'
         46        SEND_VAR                                                 !7
         47        DO_ICALL                                                 
         48        INIT_FCALL                                               'var_dump'
         49        SEND_VAR                                                 !6
         50        DO_ICALL                                                 
   28    51      > JMP                                                      ->43
         52    >   FE_FREE                                                  $32
   36    53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.92 ms | 1400 KiB | 17 Q