3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($str1,$str2){ $d = $str1*3 + $str2*2; return $d; } $q = 0; $array[0][0] = 2; $array[0][1] = 9; $array[0][2] = 3; $array[1][0] = 8; $array[1][1] = 18; $array[1][2] = 4; $array[2][0] = 20; $array[2][1] = 1; $array[2][2] = 6; for($count1 = 0; $count1 < 3; $count1++){ for($count2 = 0; $count2 < 3; $count2++){ if($q < $array[$count1][$count2]){ $q = $array[$count1][$count2]; $c1 = $count1; $c2 = $count2; } } } echo $q."/".$c1."/".$c2; ?>
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 = 30
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 32
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 30
Branch analysis from position: 47
Branch analysis from position: 30
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 32
Branch analysis from position: 44
Branch analysis from position: 32
Branch analysis from position: 41
filename:       /in/Sc3aY
function name:  (null)
number of ops:  53
compiled vars:  !0 = $q, !1 = $array, !2 = $count1, !3 = $count2, !4 = $c1, !5 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 0
    8     1        FETCH_DIM_W                                      $7      !1, 0
          2        ASSIGN_DIM                                               $7, 0
          3        OP_DATA                                                  2
    9     4        FETCH_DIM_W                                      $9      !1, 0
          5        ASSIGN_DIM                                               $9, 1
          6        OP_DATA                                                  9
   10     7        FETCH_DIM_W                                      $11     !1, 0
          8        ASSIGN_DIM                                               $11, 2
          9        OP_DATA                                                  3
   11    10        FETCH_DIM_W                                      $13     !1, 1
         11        ASSIGN_DIM                                               $13, 0
         12        OP_DATA                                                  8
   12    13        FETCH_DIM_W                                      $15     !1, 1
         14        ASSIGN_DIM                                               $15, 1
         15        OP_DATA                                                  18
   13    16        FETCH_DIM_W                                      $17     !1, 1
         17        ASSIGN_DIM                                               $17, 2
         18        OP_DATA                                                  4
   14    19        FETCH_DIM_W                                      $19     !1, 2
         20        ASSIGN_DIM                                               $19, 0
         21        OP_DATA                                                  20
   15    22        FETCH_DIM_W                                      $21     !1, 2
         23        ASSIGN_DIM                                               $21, 1
         24        OP_DATA                                                  1
   16    25        FETCH_DIM_W                                      $23     !1, 2
         26        ASSIGN_DIM                                               $23, 2
         27        OP_DATA                                                  6
   17    28        ASSIGN                                                   !2, 0
         29      > JMP                                                      ->45
   18    30    >   ASSIGN                                                   !3, 0
         31      > JMP                                                      ->42
   19    32    >   FETCH_DIM_R                                      ~27     !1, !2
         33        FETCH_DIM_R                                      ~28     ~27, !3
         34        IS_SMALLER                                               !0, ~28
         35      > JMPZ                                                     ~29, ->41
   20    36    >   FETCH_DIM_R                                      ~30     !1, !2
         37        FETCH_DIM_R                                      ~31     ~30, !3
         38        ASSIGN                                                   !0, ~31
   21    39        ASSIGN                                                   !4, !2
   22    40        ASSIGN                                                   !5, !3
   18    41    >   PRE_INC                                                  !3
         42    >   IS_SMALLER                                               !3, 3
         43      > JMPNZ                                                    ~36, ->32
   17    44    >   PRE_INC                                                  !2
         45    >   IS_SMALLER                                               !2, 3
         46      > JMPNZ                                                    ~38, ->30
   26    47    >   CONCAT                                           ~39     !0, '%2F'
         48        CONCAT                                           ~40     ~39, !4
         49        CONCAT                                           ~41     ~40, '%2F'
         50        CONCAT                                           ~42     ~41, !5
         51        ECHO                                                     ~42
   27    52      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sc3aY
function name:  a
number of ops:  8
compiled vars:  !0 = $str1, !1 = $str2, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        MUL                                              ~3      !0, 3
          3        MUL                                              ~4      !1, 2
          4        ADD                                              ~5      ~3, ~4
          5        ASSIGN                                                   !2, ~5
    4     6      > RETURN                                                   !2
    5     7*     > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.14 ms | 1399 KiB | 13 Q