3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.62 ms | 1399 KiB | 13 Q