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(); /*for($count1=0;$count1<$cha1_count;$count1++){ for($count2=0;$count2<$cha2_count;$count2++){ if($fcount == 0){ $fcount_array[$fcount] = $cha12[$count1][$count2]; $fcount++; } else { for($fc=0;$fc<$fcount;$fc++){ if($fcount_array[$fc] == $cha12[$count1][$count2]) continue 2; } $fcount_array[$fcount] = $cha12[$count1][$count2]; $fcount++; } } } print_r($fcount_array); */ //$cm: cha1とcha2の短い方の値 //$nc: 現在足している要素の数 //$sum: 合計 /*function loop($cm,$nc){ if($nc > $cm){ $sum = -1; } else { */ ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R4tkR
function name:  (null)
number of ops:  33
compiled vars:  !0 = $cha12, !1 = $cha1_count, !2 = $cha2_count, !3 = $fcount, !4 = $fcount_array
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                                      $8      !0, 0
          4        ASSIGN_DIM                                               $8, 0
          5        OP_DATA                                                  3
    6     6        FETCH_DIM_W                                      $10     !0, 0
          7        ASSIGN_DIM                                               $10, 1
          8        OP_DATA                                                  6
    7     9        FETCH_DIM_W                                      $12     !0, 0
         10        ASSIGN_DIM                                               $12, 2
         11        OP_DATA                                                  2
    8    12        FETCH_DIM_W                                      $14     !0, 1
         13        ASSIGN_DIM                                               $14, 0
         14        OP_DATA                                                  4
    9    15        FETCH_DIM_W                                      $16     !0, 1
         16        ASSIGN_DIM                                               $16, 1
         17        OP_DATA                                                  5
   10    18        FETCH_DIM_W                                      $18     !0, 1
         19        ASSIGN_DIM                                               $18, 2
         20        OP_DATA                                                  3
   11    21        FETCH_DIM_W                                      $20     !0, 2
         22        ASSIGN_DIM                                               $20, 0
         23        OP_DATA                                                  2
   12    24        FETCH_DIM_W                                      $22     !0, 2
         25        ASSIGN_DIM                                               $22, 1
         26        OP_DATA                                                  2
   13    27        FETCH_DIM_W                                      $24     !0, 2
         28        ASSIGN_DIM                                               $24, 2
         29        OP_DATA                                                  8
   14    30        ASSIGN                                                   !3, 0
   15    31        ASSIGN                                                   !4, <array>
   44    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.69 ms | 1395 KiB | 13 Q