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; $x=0; foreach ($x as $matrix) { echo $x; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 63, Position 2 = 66
Branch analysis from position: 63
2 jumps found. (Code = 78) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 66
filename:       /in/Tkf4u
function name:  (null)
number of ops:  68
compiled vars:  !0 = $matrix, !1 = $sum1, !2 = $sum2, !3 = $sum3, !4 = $sum4, !5 = $sum5, !6 = $sum6, !7 = $result, !8 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        FETCH_DIM_R                                      ~10     !0, 0
          2        FETCH_DIM_R                                      ~11     ~10, 0
          3        FETCH_DIM_R                                      ~12     !0, 1
          4        FETCH_DIM_R                                      ~13     ~12, 1
          5        MUL                                              ~14     ~11, ~13
          6        FETCH_DIM_R                                      ~15     !0, 2
          7        FETCH_DIM_R                                      ~16     ~15, 2
          8        MUL                                              ~17     ~14, ~16
          9        ASSIGN                                                   !1, ~17
   10    10        FETCH_DIM_R                                      ~19     !0, 0
         11        FETCH_DIM_R                                      ~20     ~19, 1
         12        FETCH_DIM_R                                      ~21     !0, 1
         13        FETCH_DIM_R                                      ~22     ~21, 2
         14        MUL                                              ~23     ~20, ~22
         15        FETCH_DIM_R                                      ~24     !0, 2
         16        FETCH_DIM_R                                      ~25     ~24, 0
         17        MUL                                              ~26     ~23, ~25
         18        ASSIGN                                                   !2, ~26
   11    19        FETCH_DIM_R                                      ~28     !0, 0
         20        FETCH_DIM_R                                      ~29     ~28, 2
         21        FETCH_DIM_R                                      ~30     !0, 1
         22        FETCH_DIM_R                                      ~31     ~30, 0
         23        MUL                                              ~32     ~29, ~31
         24        FETCH_DIM_R                                      ~33     !0, 2
         25        FETCH_DIM_R                                      ~34     ~33, 1
         26        MUL                                              ~35     ~32, ~34
         27        ASSIGN                                                   !3, ~35
   12    28        FETCH_DIM_R                                      ~37     !0, 2
         29        FETCH_DIM_R                                      ~38     ~37, 0
         30        FETCH_DIM_R                                      ~39     !0, 1
         31        FETCH_DIM_R                                      ~40     ~39, 1
         32        MUL                                              ~41     ~38, ~40
         33        FETCH_DIM_R                                      ~42     !0, 0
         34        FETCH_DIM_R                                      ~43     ~42, 2
         35        MUL                                              ~44     ~41, ~43
         36        ASSIGN                                                   !4, ~44
   13    37        FETCH_DIM_R                                      ~46     !0, 2
         38        FETCH_DIM_R                                      ~47     ~46, 1
         39        FETCH_DIM_R                                      ~48     !0, 1
         40        FETCH_DIM_R                                      ~49     ~48, 2
         41        MUL                                              ~50     ~47, ~49
         42        FETCH_DIM_R                                      ~51     !0, 0
         43        FETCH_DIM_R                                      ~52     ~51, 0
         44        MUL                                              ~53     ~50, ~52
         45        ASSIGN                                                   !5, ~53
   14    46        FETCH_DIM_R                                      ~55     !0, 2
         47        FETCH_DIM_R                                      ~56     ~55, 2
         48        FETCH_DIM_R                                      ~57     !0, 1
         49        FETCH_DIM_R                                      ~58     ~57, 0
         50        MUL                                              ~59     ~56, ~58
         51        FETCH_DIM_R                                      ~60     !0, 0
         52        FETCH_DIM_R                                      ~61     ~60, 1
         53        MUL                                              ~62     ~59, ~61
         54        ASSIGN                                                   !6, ~62
   16    55        ADD                                              ~64     !1, !2
         56        ADD                                              ~65     ~64, !3
         57        SUB                                              ~66     ~65, !4
         58        SUB                                              ~67     ~66, !5
         59        SUB                                              ~68     ~67, !6
         60        ASSIGN                                                   !7, ~68
   17    61        ASSIGN                                                   !8, 0
   18    62      > FE_RESET_R                                       $71     !8, ->66
         63    > > FE_FETCH_R                                               $71, !0, ->66
   19    64    >   ECHO                                                     !8
   18    65      > JMP                                                      ->63
         66    >   FE_FREE                                                  $71
   21    67      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.23 ms | 1428 KiB | 13 Q