3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=$_GET['first']; for($i=0;$i<$_GET['roop'];$i++) { print("When they buy the coin for ".$x."yen,"); $x=($x+$_GET["cost"])*(100/(100-$_GET["tesu"])); print("they should sell the coin for ".$x."yen,"); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
Branch analysis from position: 5
filename:       /in/cnVNh
function name:  (null)
number of ops:  26
compiled vars:  !0 = $x, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~2      '_GET'
          1        FETCH_DIM_R                                      ~3      ~2, 'first'
          2        ASSIGN                                                   !0, ~3
    3     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->21
    5     5    >   CONCAT                                           ~6      'When+they+buy+the+coin+for+', !0
          6        CONCAT                                           ~7      ~6, 'yen%2C'
          7        ECHO                                                     ~7
    6     8        FETCH_R                      global              ~8      '_GET'
          9        FETCH_DIM_R                                      ~9      ~8, 'cost'
         10        ADD                                              ~10     !0, ~9
         11        FETCH_R                      global              ~11     '_GET'
         12        FETCH_DIM_R                                      ~12     ~11, 'tesu'
         13        SUB                                              ~13     100, ~12
         14        DIV                                              ~14     100, ~13
         15        MUL                                              ~15     ~10, ~14
         16        ASSIGN                                                   !0, ~15
    7    17        CONCAT                                           ~17     'they+should+sell+the+coin+for+', !0
         18        CONCAT                                           ~18     ~17, 'yen%2C'
         19        ECHO                                                     ~18
    3    20        PRE_INC                                                  !1
         21    >   FETCH_R                      global              ~20     '_GET'
         22        FETCH_DIM_R                                      ~21     ~20, 'roop'
         23        IS_SMALLER                                               !1, ~21
         24      > JMPNZ                                                    ~22, ->5
    9    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.4 ms | 1394 KiB | 13 Q