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); $acv = array_count_values($fcount_array); echo $acv[2]; ?>
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/p4l1D
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, !8 = $acv
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                                      $12     !0, 0
          4        ASSIGN_DIM                                               $12, 0
          5        OP_DATA                                                  3
    6     6        FETCH_DIM_W                                      $14     !0, 0
          7        ASSIGN_DIM                                               $14, 1
          8        OP_DATA                                                  6
    7     9        FETCH_DIM_W                                      $16     !0, 0
         10        ASSIGN_DIM                                               $16, 2
         11        OP_DATA                                                  2
    8    12        FETCH_DIM_W                                      $18     !0, 1
         13        ASSIGN_DIM                                               $18, 0
         14        OP_DATA                                                  4
    9    15        FETCH_DIM_W                                      $20     !0, 1
         16        ASSIGN_DIM                                               $20, 1
         17        OP_DATA                                                  5
   10    18        FETCH_DIM_W                                      $22     !0, 1
         19        ASSIGN_DIM                                               $22, 2
         20        OP_DATA                                                  3
   11    21        FETCH_DIM_W                                      $24     !0, 2
         22        ASSIGN_DIM                                               $24, 0
         23        OP_DATA                                                  2
   12    24        FETCH_DIM_W                                      $26     !0, 2
         25        ASSIGN_DIM                                               $26, 1
         26        OP_DATA                                                  2
   13    27        FETCH_DIM_W                                      $28     !0, 2
         28        ASSIGN_DIM                                               $28, 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                                              ~35     !2, !6
         38        ADD                                              ~36     ~35, !7
         39        ASSIGN                                                   !5, ~36
   20    40        FETCH_DIM_R                                      ~39     !0, !6
         41        FETCH_DIM_R                                      ~40     ~39, !7
         42        ASSIGN_DIM                                               !4, !5
         43        OP_DATA                                                  ~40
   18    44        PRE_INC                                                  !7
         45    >   IS_SMALLER                                               !7, !2
         46      > JMPNZ                                                    ~42, ->37
   17    47    >   PRE_INC                                                  !6
         48    >   IS_SMALLER                                               !6, !1
         49      > JMPNZ                                                    ~44, ->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                                                 
   25    56        INIT_FCALL                                               'array_count_values'
         57        SEND_VAR                                                 !4
         58        DO_ICALL                                         $47     
         59        ASSIGN                                                   !8, $47
   26    60        FETCH_DIM_R                                      ~49     !8, 2
         61        ECHO                                                     ~49
   28    62      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.35 ms | 1400 KiB | 19 Q