3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = 0; $sum = 10000; $percent = 0.1; while(1000000 >= $sum) { $sum += floor($sum * $percent); $year++; } echo 'Возраст: ' . $year . ' Сумма: ' . $sum;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/nX2r3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $year, !1 = $sum, !2 = $percent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 10000
    5     2        ASSIGN                                                   !2, 0.1
    7     3      > JMP                                                      ->10
    8     4    >   INIT_FCALL                                               'floor'
          5        MUL                                              ~6      !1, !2
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN_OP                                     1          !1, $7
    9     9        PRE_INC                                                  !0
    7    10    >   IS_SMALLER_OR_EQUAL                                      !1, 1000000
         11      > JMPNZ                                                    ~10, ->4
   12    12    >   CONCAT                                           ~11     '%D0%92%D0%BE%D0%B7%D1%80%D0%B0%D1%81%D1%82%3A+', !0
         13        CONCAT                                           ~12     ~11, '+%D0%A1%D1%83%D0%BC%D0%BC%D0%B0%3A+'
         14        CONCAT                                           ~13     ~12, !1
         15        ECHO                                                     ~13
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135 ms | 999 KiB | 14 Q