3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[0][0] = 5323; $array[0][1] = 5346; $array[0][2] = 5424; $array[1][0] = 6000; $array[1][1] = 5412; $array[1][2] = 5543; $array[2][0] = 5651; $array[2][1] = 7000; $array[2][2] = 5254; $max = PHP_INT_MIN; foreach($array as $key => $subarray){ foreach($subarray as $subkey => $value){ if($value > $max){ $x = $key; $y = $subkey; $max = $value; } } } var_dump($x, $y, $max);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 42
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 42
Branch analysis from position: 30
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 40
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 40
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 39
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 39
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/5hHXP
function name:  (null)
number of ops:  49
compiled vars:  !0 = $array, !1 = $max, !2 = $subarray, !3 = $key, !4 = $value, !5 = $subkey, !6 = $x, !7 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $8      !0, 0
          1        ASSIGN_DIM                                               $8, 0
          2        OP_DATA                                                  5323
    4     3        FETCH_DIM_W                                      $10     !0, 0
          4        ASSIGN_DIM                                               $10, 1
          5        OP_DATA                                                  5346
    5     6        FETCH_DIM_W                                      $12     !0, 0
          7        ASSIGN_DIM                                               $12, 2
          8        OP_DATA                                                  5424
    6     9        FETCH_DIM_W                                      $14     !0, 1
         10        ASSIGN_DIM                                               $14, 0
         11        OP_DATA                                                  6000
    7    12        FETCH_DIM_W                                      $16     !0, 1
         13        ASSIGN_DIM                                               $16, 1
         14        OP_DATA                                                  5412
    8    15        FETCH_DIM_W                                      $18     !0, 1
         16        ASSIGN_DIM                                               $18, 2
         17        OP_DATA                                                  5543
    9    18        FETCH_DIM_W                                      $20     !0, 2
         19        ASSIGN_DIM                                               $20, 0
         20        OP_DATA                                                  5651
   10    21        FETCH_DIM_W                                      $22     !0, 2
         22        ASSIGN_DIM                                               $22, 1
         23        OP_DATA                                                  7000
   11    24        FETCH_DIM_W                                      $24     !0, 2
         25        ASSIGN_DIM                                               $24, 2
         26        OP_DATA                                                  5254
   13    27        ASSIGN                                                   !1, -9223372036854775808
   15    28      > FE_RESET_R                                       $27     !0, ->42
         29    > > FE_FETCH_R                                       ~28     $27, !2, ->42
         30    >   ASSIGN                                                   !3, ~28
   16    31      > FE_RESET_R                                       $30     !2, ->40
         32    > > FE_FETCH_R                                       ~31     $30, !4, ->40
         33    >   ASSIGN                                                   !5, ~31
   17    34        IS_SMALLER                                               !1, !4
         35      > JMPZ                                                     ~33, ->39
   18    36    >   ASSIGN                                                   !6, !3
   19    37        ASSIGN                                                   !7, !5
   20    38        ASSIGN                                                   !1, !4
   16    39    > > JMP                                                      ->32
         40    >   FE_FREE                                                  $30
   15    41      > JMP                                                      ->29
         42    >   FE_FREE                                                  $27
   25    43        INIT_FCALL                                               'var_dump'
         44        SEND_VAR                                                 !6
         45        SEND_VAR                                                 !7
         46        SEND_VAR                                                 !1
         47        DO_ICALL                                                 
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.59 ms | 1005 KiB | 14 Q