3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($str1,$str2){ $d = $str1*4 + $str2*1; return $d; } for($count1 = 0; $count1 < 4; $count1++){ for($count2 = 0; $count2 < 4; $count2++){ $array[$count1][$count2] = a($count1,$count2); echo $array[$count1][$count2]; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
filename:       /in/ZOAdc
function name:  (null)
number of ops:  21
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                                                      ->18
    7     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->15
    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        ECHO                                                     ~9
    7    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 4
         16      > JMPNZ                                                    ~11, ->4
    6    17    >   PRE_INC                                                  !0
         18    >   IS_SMALLER                                               !0, 4
         19      > JMPNZ                                                    ~13, ->2
   12    20    > > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZOAdc
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, 4
          3        MUL                                              ~4      !1, 1
          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:
149.57 ms | 1390 KiB | 14 Q