3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($str1,$str2){ $d = $str1*3 + $str2*2; return $d; } for($count1 = 0; $count1 < 3; $count1++){ for($count2 = 0; $count2 < 3; $count2++){ $array[$count1][$count2] = a($count1,$count2); echo $array[$count1][$count2]." "; } } echo max(array_keys($array[1])); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/YAkPs
function name:  (null)
number of ops:  30
compiled vars:  !0 = $count1, !1 = $count2, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->19
    7     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->16
    8     4    >   INIT_FCALL                                               'a'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0  $7      
          8        FETCH_DIM_W                                      $5      !2, !0
          9        ASSIGN_DIM                                               $5, !1
         10        OP_DATA                                                  $7
    9    11        FETCH_DIM_R                                      ~8      !2, !0
         12        FETCH_DIM_R                                      ~9      ~8, !1
         13        CONCAT                                           ~10     ~9, '+'
         14        ECHO                                                     ~10
    7    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 3
         17      > JMPNZ                                                    ~12, ->4
    6    18    >   PRE_INC                                                  !0
         19    >   IS_SMALLER                                               !0, 3
         20      > JMPNZ                                                    ~14, ->2
   12    21    >   INIT_FCALL                                               'max'
         22        INIT_FCALL                                               'array_keys'
         23        FETCH_DIM_R                                      ~15     !2, 1
         24        SEND_VAL                                                 ~15
         25        DO_ICALL                                         $16     
         26        SEND_VAR                                                 $16
         27        DO_ICALL                                         $17     
         28        ECHO                                                     $17
   13    29      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YAkPs
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:
156.05 ms | 1403 KiB | 18 Q