3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = str_split('ABCDEFGHIJK'); $collecte = array_keys($list); for($i=0;$i<100;$i++) { $shuffle = $list; array_shuffle($shuffle); foreach($shuffle as $pos=>$letter) $collecte[$pos][]=$etter; } foreach($collecte as $pos=>$collection) $collecte[$pos] = array_count_values($collection); $table=array(); foreach($collecte as $pos=>$collection) foreach($list as $letter) $table[$letter][$pos]='<td>'.$collection[$letter].'</td>'; echo '<table>'; foreach($table as $letter=>$ligne) { ksort($table[$letter]); echo '<tr>'.implode('',$table[$letter]).'</tr>'; } echo '</table>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 10
Branch analysis from position: 25
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 34
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 34
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 34
2 jumps found. (Code = 77) Position 1 = 37, Position 2 = 50
Branch analysis from position: 37
2 jumps found. (Code = 78) Position 1 = 38, Position 2 = 50
Branch analysis from position: 38
2 jumps found. (Code = 77) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
2 jumps found. (Code = 78) Position 1 = 41, Position 2 = 48
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 48
Branch analysis from position: 50
2 jumps found. (Code = 77) Position 1 = 53, Position 2 = 68
Branch analysis from position: 53
2 jumps found. (Code = 78) Position 1 = 54, Position 2 = 68
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 68
Branch analysis from position: 50
Branch analysis from position: 34
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 10
Branch analysis from position: 25
Branch analysis from position: 10
Branch analysis from position: 21
filename:       /in/KaPQP
function name:  (null)
number of ops:  71
compiled vars:  !0 = $list, !1 = $collecte, !2 = $i, !3 = $shuffle, !4 = $letter, !5 = $pos, !6 = $etter, !7 = $collection, !8 = $table, !9 = $ligne
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 'ABCDEFGHIJK'
          2        DO_ICALL                                         $10     
          3        ASSIGN                                                   !0, $10
    4     4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $12     
          7        ASSIGN                                                   !1, $12
    6     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->23
    8    10    >   ASSIGN                                                   !3, !0
    9    11        INIT_FCALL_BY_NAME                                       'array_shuffle'
         12        SEND_VAR_EX                                              !3
         13        DO_FCALL                                      0          
   10    14      > FE_RESET_R                                       $17     !3, ->21
         15    > > FE_FETCH_R                                       ~18     $17, !4, ->21
         16    >   ASSIGN                                                   !5, ~18
   11    17        FETCH_DIM_W                                      $20     !1, !5
         18        ASSIGN_DIM                                               $20
         19        OP_DATA                                                  !6
   10    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $17
    6    22        PRE_INC                                                  !2
         23    >   IS_SMALLER                                               !2, 100
         24      > JMPNZ                                                    ~23, ->10
   14    25    > > FE_RESET_R                                       $24     !1, ->34
         26    > > FE_FETCH_R                                       ~25     $24, !7, ->34
         27    >   ASSIGN                                                   !5, ~25
   15    28        INIT_FCALL                                               'array_count_values'
         29        SEND_VAR                                                 !7
         30        DO_ICALL                                         $28     
         31        ASSIGN_DIM                                               !1, !5
         32        OP_DATA                                                  $28
   14    33      > JMP                                                      ->26
         34    >   FE_FREE                                                  $24
   17    35        ASSIGN                                                   !8, <array>
   18    36      > FE_RESET_R                                       $30     !1, ->50
         37    > > FE_FETCH_R                                       ~31     $30, !7, ->50
         38    >   ASSIGN                                                   !5, ~31
   19    39      > FE_RESET_R                                       $33     !0, ->48
         40    > > FE_FETCH_R                                               $33, !4, ->48
   20    41    >   FETCH_DIM_R                                      ~36     !7, !4
         42        CONCAT                                           ~37     '%3Ctd%3E', ~36
         43        CONCAT                                           ~38     ~37, '%3C%2Ftd%3E'
         44        FETCH_DIM_W                                      $34     !8, !4
         45        ASSIGN_DIM                                               $34, !5
         46        OP_DATA                                                  ~38
   19    47      > JMP                                                      ->40
         48    >   FE_FREE                                                  $33
   18    49      > JMP                                                      ->37
         50    >   FE_FREE                                                  $30
   21    51        ECHO                                                     '%3Ctable%3E'
   22    52      > FE_RESET_R                                       $39     !8, ->68
         53    > > FE_FETCH_R                                       ~40     $39, !9, ->68
         54    >   ASSIGN                                                   !4, ~40
   24    55        INIT_FCALL                                               'ksort'
         56        FETCH_DIM_W                                      $42     !8, !4
         57        SEND_REF                                                 $42
         58        DO_ICALL                                                 
   25    59        INIT_FCALL                                               'implode'
         60        SEND_VAL                                                 ''
         61        FETCH_DIM_R                                      ~44     !8, !4
         62        SEND_VAL                                                 ~44
         63        DO_ICALL                                         $45     
         64        CONCAT                                           ~46     '%3Ctr%3E', $45
         65        CONCAT                                           ~47     ~46, '%3C%2Ftr%3E'
         66        ECHO                                                     ~47
   22    67      > JMP                                                      ->53
         68    >   FE_FREE                                                  $39
   27    69        ECHO                                                     '%3C%2Ftable%3E'
         70      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1409 KiB | 23 Q