3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compute_prediction($n, $w) { for ($x=0;$x<$w;$x++) { $n=($n*1.07); } echo $n; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4UMEe
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Function compute_prediction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/4UMEe
function name:  compute_prediction
number of ops:  11
compiled vars:  !0 = $n, !1 = $w, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->7
    4     4    >   MUL                                              ~4      !0, 1.07
          5        ASSIGN                                                   !0, ~4
    3     6        PRE_INC                                                  !2
          7    >   IS_SMALLER                                               !2, !1
          8      > JMPNZ                                                    ~7, ->4
    6     9    >   ECHO                                                     !0
    7    10      > RETURN                                                   null

End of function compute_prediction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.75 ms | 1393 KiB | 13 Q