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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.26 ms | 1400 KiB | 17 Q