3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = range(1, 6); $array2 = [[2, 3, 4, 4, 1, 2,], [3, 2, 1, 4, 1, 3,],[4, 1, 2, 3, 1, 3,],[3, 4, 2, 1, 1, 3,], [1, 2, 2, 2, 3, 3,]]; $c = count($array1); $xaxis = sizeof($array2); $yaxis = max(array_map('count', $array2)); // normalization for($i = 0; $i < $c; $i++) { for($j = 0; $j < ($yaxis - 1); $j++) { $c1norm = round($array2[$j][$i] / $array1[$i]); echo $array2[$j][$i] . " / " . $array1[$i] . " = " . $c1norm, "\n"; } echo "\n\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 20
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 22
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 20
Branch analysis from position: 47
Branch analysis from position: 20
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 22
Branch analysis from position: 43
Branch analysis from position: 22
filename:       /in/1e8O6
function name:  (null)
number of ops:  48
compiled vars:  !0 = $array1, !1 = $array2, !2 = $c, !3 = $xaxis, !4 = $yaxis, !5 = $i, !6 = $j, !7 = $c1norm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 6
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !0, $8
    4     5        ASSIGN                                                   !1, <array>
    6     6        COUNT                                            ~11     !0
          7        ASSIGN                                                   !2, ~11
    7     8        COUNT                                            ~13     !1
          9        ASSIGN                                                   !3, ~13
    8    10        INIT_FCALL                                               'max'
         11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'count'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $15     
         15        SEND_VAR                                                 $15
         16        DO_ICALL                                         $16     
         17        ASSIGN                                                   !4, $16
   11    18        ASSIGN                                                   !5, 0
         19      > JMP                                                      ->45
   12    20    >   ASSIGN                                                   !6, 0
         21      > JMP                                                      ->40
   13    22    >   INIT_FCALL                                               'round'
         23        FETCH_DIM_R                                      ~20     !1, !6
         24        FETCH_DIM_R                                      ~21     ~20, !5
         25        FETCH_DIM_R                                      ~22     !0, !5
         26        DIV                                              ~23     ~21, ~22
         27        SEND_VAL                                                 ~23
         28        DO_ICALL                                         $24     
         29        ASSIGN                                                   !7, $24
   14    30        FETCH_DIM_R                                      ~26     !1, !6
         31        FETCH_DIM_R                                      ~27     ~26, !5
         32        CONCAT                                           ~28     ~27, '+%2F+'
         33        FETCH_DIM_R                                      ~29     !0, !5
         34        CONCAT                                           ~30     ~28, ~29
         35        CONCAT                                           ~31     ~30, '+%3D+'
         36        CONCAT                                           ~32     ~31, !7
         37        ECHO                                                     ~32
         38        ECHO                                                     '%0A'
   12    39        PRE_INC                                                  !6
         40    >   SUB                                              ~34     !4, 1
         41        IS_SMALLER                                               !6, ~34
         42      > JMPNZ                                                    ~35, ->22
   16    43    >   ECHO                                                     '%0A%0A'
   11    44        PRE_INC                                                  !5
         45    >   IS_SMALLER                                               !5, !2
         46      > JMPNZ                                                    ~37, ->20
   17    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.16 ms | 1018 KiB | 17 Q