3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cha12 = array(); $cha1_count = 3; $cha2_count = 3; $cha12[0][0] = 3; $cha12[0][1] = 6; $cha12[0][2] = 2; $cha12[1][0] = 4; $cha12[1][1] = 5; $cha12[1][2] = 3; $cha12[2][0] = 2; $cha12[2][1] = 2; $cha12[2][2] = 8; $fcount = 0; $fcount_array = array(); $fc = 0; for($count1=0;$count1<$cha1_count;$count1++){ for($count2=0;$count2<$cha2_count;$count2++){ $fc = ($cha2_count * $count1) + $count2; $fcount_array[$fc] = $cha12[$count1][$count2]; } } asort($fcount_array); print_r($fcount_array); //$count = count($fcount_array); print_r(array_count_values($fcount_array)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 35
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 37
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 35
Branch analysis from position: 50
Branch analysis from position: 35
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 37
Branch analysis from position: 47
Branch analysis from position: 37
filename:       /in/mpmXe
function name:  (null)
number of ops:  63
compiled vars:  !0 = $cha12, !1 = $cha1_count, !2 = $cha2_count, !3 = $fcount, !4 = $fcount_array, !5 = $fc, !6 = $count1, !7 = $count2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 3
    4     2        ASSIGN                                                   !2, 3
    5     3        FETCH_DIM_W                                      $11     !0, 0
          4        ASSIGN_DIM                                               $11, 0
          5        OP_DATA                                                  3
    6     6        FETCH_DIM_W                                      $13     !0, 0
          7        ASSIGN_DIM                                               $13, 1
          8        OP_DATA                                                  6
    7     9        FETCH_DIM_W                                      $15     !0, 0
         10        ASSIGN_DIM                                               $15, 2
         11        OP_DATA                                                  2
    8    12        FETCH_DIM_W                                      $17     !0, 1
         13        ASSIGN_DIM                                               $17, 0
         14        OP_DATA                                                  4
    9    15        FETCH_DIM_W                                      $19     !0, 1
         16        ASSIGN_DIM                                               $19, 1
         17        OP_DATA                                                  5
   10    18        FETCH_DIM_W                                      $21     !0, 1
         19        ASSIGN_DIM                                               $21, 2
         20        OP_DATA                                                  3
   11    21        FETCH_DIM_W                                      $23     !0, 2
         22        ASSIGN_DIM                                               $23, 0
         23        OP_DATA                                                  2
   12    24        FETCH_DIM_W                                      $25     !0, 2
         25        ASSIGN_DIM                                               $25, 1
         26        OP_DATA                                                  2
   13    27        FETCH_DIM_W                                      $27     !0, 2
         28        ASSIGN_DIM                                               $27, 2
         29        OP_DATA                                                  8
   14    30        ASSIGN                                                   !3, 0
   15    31        ASSIGN                                                   !4, <array>
   16    32        ASSIGN                                                   !5, 0
   17    33        ASSIGN                                                   !6, 0
         34      > JMP                                                      ->48
   18    35    >   ASSIGN                                                   !7, 0
         36      > JMP                                                      ->45
   19    37    >   MUL                                              ~34     !2, !6
         38        ADD                                              ~35     ~34, !7
         39        ASSIGN                                                   !5, ~35
   20    40        FETCH_DIM_R                                      ~38     !0, !6
         41        FETCH_DIM_R                                      ~39     ~38, !7
         42        ASSIGN_DIM                                               !4, !5
         43        OP_DATA                                                  ~39
   18    44        PRE_INC                                                  !7
         45    >   IS_SMALLER                                               !7, !2
         46      > JMPNZ                                                    ~41, ->37
   17    47    >   PRE_INC                                                  !6
         48    >   IS_SMALLER                                               !6, !1
         49      > JMPNZ                                                    ~43, ->35
   23    50    >   INIT_FCALL                                               'asort'
         51        SEND_REF                                                 !4
         52        DO_ICALL                                                 
   24    53        INIT_FCALL                                               'print_r'
         54        SEND_VAR                                                 !4
         55        DO_ICALL                                                 
   26    56        INIT_FCALL                                               'print_r'
         57        INIT_FCALL                                               'array_count_values'
         58        SEND_VAR                                                 !4
         59        DO_ICALL                                         $46     
         60        SEND_VAR                                                 $46
         61        DO_ICALL                                                 
   28    62      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.52 ms | 1400 KiB | 19 Q