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; } } 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
1 jumps found. (Code = 62) Position 1 = -2
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/BtIQI
function name:  (null)
number of ops:  46
compiled vars:  !0 = $pivot, !1 = $n, !2 = $i, !3 = $user, !4 = $rand, !5 = $random
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                                                    ~11, ->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                                         $13     
         15        FETCH_DIM_W                                      $14     !0, $13
         16        ASSIGN_REF                                               !3, $14
   14    17        INIT_FCALL                                               'rand'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 100
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !4, $16
   15    22        IS_NOT_EQUAL                                             !4, !3
         23      > JMPZ                                                     ~18, ->26
         24    >   QM_ASSIGN                                        ~19     !4
         25      > JMP                                                      ->28
         26    >   ADD                                              ~20     !4, 1
         27        QM_ASSIGN                                        ~19     ~20
         28    >   ASSIGN                                                   !5, ~19
   16    29      > JMP                                                      ->31
   17    30    >   PRE_INC                                                  !5
   16    31    >   ARRAY_KEY_EXISTS                                         !5, !3
         32      > JMPNZ                                                    ~23, ->30
   20    33    >   ASSIGN_DIM                                               !3
         34        OP_DATA                                                  !5
   22    35        IS_EQUAL                                                 !1, 100
         36      > JMPZ                                                     ~25, ->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                                                    ~29, ->11
   29    42    >   INIT_FCALL                                               'print_r'
         43        SEND_VAR                                                 !0
         44        DO_ICALL                                                 
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.95 ms | 1400 KiB | 17 Q