3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.67 ms | 1394 KiB | 13 Q