3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money = 1000; $interestRate = 4; $year = 1; //while($money != 2000){ $money += ($money/100) * $interestRate; $year++; //} echo $money.$year;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AFFup
function name:  (null)
number of ops:  10
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
    7     3        DIV                                              ~6      !0, 100
          4        MUL                                              ~7      !1, ~6
          5        ASSIGN_OP                                     1          !0, ~7
    8     6        PRE_INC                                                  !2
   11     7        CONCAT                                           ~10     !0, !2
          8        ECHO                                                     ~10
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.56 ms | 1392 KiB | 13 Q