3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money = 1000; $interestRate = 4; $year = 0; while($money < 2000){ $money += ($money/100) * $interestRate; $year++; } echo "Geld bedrag: ".$money; echo "Na aantal jaar ".$year;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/rRAdO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $money, !1 = $interestRate, !2 = $year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    3     1        ASSIGN                                                   !1, 4
    4     2        ASSIGN                                                   !2, 0
    6     3      > JMP                                                      ->8
    7     4    >   DIV                                              ~6      !0, 100
          5        MUL                                              ~7      !1, ~6
          6        ASSIGN_OP                                     1          !0, ~7
    8     7        PRE_INC                                                  !2
    6     8    >   IS_SMALLER                                               !0, 2000
          9      > JMPNZ                                                    ~10, ->4
   11    10    >   CONCAT                                           ~11     'Geld+bedrag%3A+', !0
         11        ECHO                                                     ~11
   12    12        CONCAT                                           ~12     'Na+aantal+jaar+', !2
         13        ECHO                                                     ~12
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1393 KiB | 13 Q