3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = array ( array (1,2, 3), array (4, 5, 6), array (7, 8, 9), ); $sum1 = $matrix[0][0] * $matrix[1][1] * $matrix [2][2]; $sum2 = $matrix[0][1] * $matrix[1][2] * $matrix [2][0]; $sum3 = $matrix[0][2] * $matrix[1][0] * $matrix [2][1]; $sum4 = $matrix[2][0] * $matrix[1][1] * $matrix [0][2]; $sum5 = $matrix[2][1] * $matrix[1][2] * $matrix [0][0]; $sum6 = $matrix[2][2] * $matrix[1][0] * $matrix [0][1]; $result= $sum1 + $sum2 + $sum3 - $sum4 - $sum5 - $sum6; $zeile=0; $spalte=0; for ($zeile=0; $zeile<=2; $zeile++) { for( $spalte=0; $spalte<=2; $spalte++ ) { echo "m[".$zeile.", ".$spalte."]=".$matrix[$zeile][$spalte]; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
2 jumps found. (Code = 44) Position 1 = 81, Position 2 = 65
Branch analysis from position: 81
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 67
Branch analysis from position: 78
2 jumps found. (Code = 44) Position 1 = 81, Position 2 = 65
Branch analysis from position: 81
Branch analysis from position: 65
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 67
Branch analysis from position: 78
Branch analysis from position: 67
filename:       /in/C1Nii
function name:  (null)
number of ops:  82
compiled vars:  !0 = $matrix, !1 = $sum1, !2 = $sum2, !3 = $sum3, !4 = $sum4, !5 = $sum5, !6 = $sum6, !7 = $result, !8 = $zeile, !9 = $spalte
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        FETCH_DIM_R                                      ~11     !0, 0
          2        FETCH_DIM_R                                      ~12     ~11, 0
          3        FETCH_DIM_R                                      ~13     !0, 1
          4        FETCH_DIM_R                                      ~14     ~13, 1
          5        MUL                                              ~15     ~12, ~14
          6        FETCH_DIM_R                                      ~16     !0, 2
          7        FETCH_DIM_R                                      ~17     ~16, 2
          8        MUL                                              ~18     ~15, ~17
          9        ASSIGN                                                   !1, ~18
   10    10        FETCH_DIM_R                                      ~20     !0, 0
         11        FETCH_DIM_R                                      ~21     ~20, 1
         12        FETCH_DIM_R                                      ~22     !0, 1
         13        FETCH_DIM_R                                      ~23     ~22, 2
         14        MUL                                              ~24     ~21, ~23
         15        FETCH_DIM_R                                      ~25     !0, 2
         16        FETCH_DIM_R                                      ~26     ~25, 0
         17        MUL                                              ~27     ~24, ~26
         18        ASSIGN                                                   !2, ~27
   11    19        FETCH_DIM_R                                      ~29     !0, 0
         20        FETCH_DIM_R                                      ~30     ~29, 2
         21        FETCH_DIM_R                                      ~31     !0, 1
         22        FETCH_DIM_R                                      ~32     ~31, 0
         23        MUL                                              ~33     ~30, ~32
         24        FETCH_DIM_R                                      ~34     !0, 2
         25        FETCH_DIM_R                                      ~35     ~34, 1
         26        MUL                                              ~36     ~33, ~35
         27        ASSIGN                                                   !3, ~36
   12    28        FETCH_DIM_R                                      ~38     !0, 2
         29        FETCH_DIM_R                                      ~39     ~38, 0
         30        FETCH_DIM_R                                      ~40     !0, 1
         31        FETCH_DIM_R                                      ~41     ~40, 1
         32        MUL                                              ~42     ~39, ~41
         33        FETCH_DIM_R                                      ~43     !0, 0
         34        FETCH_DIM_R                                      ~44     ~43, 2
         35        MUL                                              ~45     ~42, ~44
         36        ASSIGN                                                   !4, ~45
   13    37        FETCH_DIM_R                                      ~47     !0, 2
         38        FETCH_DIM_R                                      ~48     ~47, 1
         39        FETCH_DIM_R                                      ~49     !0, 1
         40        FETCH_DIM_R                                      ~50     ~49, 2
         41        MUL                                              ~51     ~48, ~50
         42        FETCH_DIM_R                                      ~52     !0, 0
         43        FETCH_DIM_R                                      ~53     ~52, 0
         44        MUL                                              ~54     ~51, ~53
         45        ASSIGN                                                   !5, ~54
   14    46        FETCH_DIM_R                                      ~56     !0, 2
         47        FETCH_DIM_R                                      ~57     ~56, 2
         48        FETCH_DIM_R                                      ~58     !0, 1
         49        FETCH_DIM_R                                      ~59     ~58, 0
         50        MUL                                              ~60     ~57, ~59
         51        FETCH_DIM_R                                      ~61     !0, 0
         52        FETCH_DIM_R                                      ~62     ~61, 1
         53        MUL                                              ~63     ~60, ~62
         54        ASSIGN                                                   !6, ~63
   16    55        ADD                                              ~65     !1, !2
         56        ADD                                              ~66     ~65, !3
         57        SUB                                              ~67     ~66, !4
         58        SUB                                              ~68     ~67, !5
         59        SUB                                              ~69     ~68, !6
         60        ASSIGN                                                   !7, ~69
   17    61        ASSIGN                                                   !8, 0
   18    62        ASSIGN                                                   !9, 0
   21    63        ASSIGN                                                   !8, 0
         64      > JMP                                                      ->79
   22    65    >   ASSIGN                                                   !9, 0
         66      > JMP                                                      ->76
   23    67    >   CONCAT                                           ~75     'm%5B', !8
         68        CONCAT                                           ~76     ~75, '%2C+'
         69        CONCAT                                           ~77     ~76, !9
         70        CONCAT                                           ~78     ~77, '%5D%3D'
         71        FETCH_DIM_R                                      ~79     !0, !8
         72        FETCH_DIM_R                                      ~80     ~79, !9
         73        CONCAT                                           ~81     ~78, ~80
         74        ECHO                                                     ~81
   22    75        PRE_INC                                                  !9
         76    >   IS_SMALLER_OR_EQUAL                                      !9, 2
         77      > JMPNZ                                                    ~83, ->67
   21    78    >   PRE_INC                                                  !8
         79    >   IS_SMALLER_OR_EQUAL                                      !8, 2
         80      > JMPNZ                                                    ~85, ->65
   26    81    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.91 ms | 1399 KiB | 13 Q