3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=2000; $xx=$x; $a=20; $qq=0.02; $s=0; for ($i=$qq;; $i=$i+$i*$a*0.01) { $x-=$i; echo ($s+1).">>>". ($xx-$x)."\n##>>>(". $i.")\n"; if ($x <0) break; $y=$x; $s++; $c=$i; } echo "\n#######\n"; echo ($c)."///".$s."\\\\\\ \n".($xx-$x).">>>n>>".(-$x)."\nend>>>". ($y); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 7
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 7
Branch analysis from position: 27
Branch analysis from position: 7
filename:       /in/JkfLv
function name:  (null)
number of ops:  40
compiled vars:  !0 = $x, !1 = $xx, !2 = $a, !3 = $qq, !4 = $s, !5 = $i, !6 = $y, !7 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2000
    3     1        ASSIGN                                                   !1, !0
    4     2        ASSIGN                                                   !2, 20
          3        ASSIGN                                                   !3, 0.02
    5     4        ASSIGN                                                   !4, 0
    6     5        ASSIGN                                                   !5, !3
          6      > JMP                                                      ->26
    8     7    >   ASSIGN_OP                                     2          !0, !5
    9     8        ADD                                              ~15     !4, 1
          9        CONCAT                                           ~16     ~15, '%3E%3E%3E'
         10        SUB                                              ~17     !1, !0
         11        CONCAT                                           ~18     ~16, ~17
         12        CONCAT                                           ~19     ~18, '%0A%23%23%3E%3E%3E%28'
         13        CONCAT                                           ~20     ~19, !5
         14        CONCAT                                           ~21     ~20, '%29%0A'
         15        ECHO                                                     ~21
   10    16        IS_SMALLER                                               !0, 0
         17      > JMPZ                                                     ~22, ->19
         18    > > JMP                                                      ->27
   11    19    >   ASSIGN                                                   !6, !0
   12    20        PRE_INC                                                  !4
   13    21        ASSIGN                                                   !7, !5
    6    22        MUL                                              ~26     !5, !2
         23        MUL                                              ~27     ~26, 0.01
         24        ADD                                              ~28     !5, ~27
         25        ASSIGN                                                   !5, ~28
         26    > > JMPNZ                                                    <true>, ->7
   15    27    >   ECHO                                                     '%0A%23%23%23%23%23%23%23%0A'
   16    28        CONCAT                                           ~30     !7, '%2F%2F%2F'
         29        CONCAT                                           ~31     ~30, !4
         30        CONCAT                                           ~32     ~31, '%5C%5C%5C+%0A'
         31        SUB                                              ~33     !1, !0
         32        CONCAT                                           ~34     ~32, ~33
         33        CONCAT                                           ~35     ~34, '%3E%3E%3En%3E%3E'
         34        MUL                                              ~36     !0, -1
         35        CONCAT                                           ~37     ~35, ~36
         36        CONCAT                                           ~38     ~37, '%0Aend%3E%3E%3E'
         37        CONCAT                                           ~39     ~38, !6
         38        ECHO                                                     ~39
   17    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.74 ms | 1390 KiB | 13 Q