3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=42; $xx=$x; $a=50; $q=1; $qq=0.07; $s=0; for ($i=$qq;; $i=$i+$i*$a*0.01) { $x-=$i; //echo $i."\n"; if ($x <0) break; $y=$x; $s++; $c=$i; } 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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 8
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 8
Branch analysis from position: 20
Branch analysis from position: 8
filename:       /in/9XP95
function name:  (null)
number of ops:  32
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, 42
    3     1        ASSIGN                                                   !1, !0
    4     2        ASSIGN                                                   !2, 50
          3        ASSIGN                                                   !3, 1
          4        ASSIGN                                                   !4, 0.07
    5     5        ASSIGN                                                   !5, 0
    6     6        ASSIGN                                                   !6, !4
          7      > JMP                                                      ->19
    8     8    >   ASSIGN_OP                                     2          !0, !6
   10     9        IS_SMALLER                                               !0, 0
         10      > JMPZ                                                     ~17, ->12
         11    > > JMP                                                      ->20
   11    12    >   ASSIGN                                                   !7, !0
   12    13        PRE_INC                                                  !5
   13    14        ASSIGN                                                   !8, !6
    6    15        MUL                                              ~21     !6, !2
         16        MUL                                              ~22     ~21, 0.01
         17        ADD                                              ~23     !6, ~22
         18        ASSIGN                                                   !6, ~23
         19    > > JMPNZ                                                    <true>, ->8
   16    20    >   CONCAT                                           ~25     !8, '%2F%2F%2F%2F'
         21        CONCAT                                           ~26     ~25, !5
         22        CONCAT                                           ~27     ~26, '%5C%5C%5C+%0A'
         23        SUB                                              ~28     !1, !0
         24        CONCAT                                           ~29     ~27, ~28
         25        CONCAT                                           ~30     ~29, '%3E%3E%3En%3E%3E'
         26        MUL                                              ~31     !0, -1
         27        CONCAT                                           ~32     ~30, ~31
         28        CONCAT                                           ~33     ~32, '%0Aend%3E%3E%3E'
         29        CONCAT                                           ~34     ~33, !7
         30        ECHO                                                     ~34
   17    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1395 KiB | 13 Q