3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money = 1000; $interestRate = 4; $year = 1; while($money != 2000){ $money += ($money/100) * $interestRate; $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/n0GsT
function name:  (null)
number of ops:  11
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, 1
    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_NOT_EQUAL                                             !0, 2000
          9      > JMPNZ                                                    ~10, ->4
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1393 KiB | 13 Q