3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 100; $y = 100; $xBonus = $y*0.025; $yBonus = $x*1.4; for($i=1;$i<100;$i++){ $xBonus = $yBonus * 0.025; $yBonus = $xBonus * 1.4; $x = $x + $xBonus; $y = $y + $yBonus; echo 'x-bonus: '. $xBonus . ', y-bonus: '.$yBonus."\n"; echo 'x-gesamt: '. round($x,2) . ', y-gesamt: '.round($y,2)."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 8
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 8
Branch analysis from position: 37
Branch analysis from position: 8
filename:       /in/0t26o
function name:  (null)
number of ops:  38
compiled vars:  !0 = $x, !1 = $y, !2 = $xBonus, !3 = $yBonus, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100
    3     1        ASSIGN                                                   !1, 100
    4     2        MUL                                              ~7      !1, 0.025
          3        ASSIGN                                                   !2, ~7
    5     4        MUL                                              ~9      !0, 1.4
          5        ASSIGN                                                   !3, ~9
    7     6        ASSIGN                                                   !4, 1
          7      > JMP                                                      ->35
    8     8    >   MUL                                              ~12     !3, 0.025
          9        ASSIGN                                                   !2, ~12
    9    10        MUL                                              ~14     !2, 1.4
         11        ASSIGN                                                   !3, ~14
   10    12        ADD                                              ~16     !0, !2
         13        ASSIGN                                                   !0, ~16
   11    14        ADD                                              ~18     !1, !3
         15        ASSIGN                                                   !1, ~18
   12    16        CONCAT                                           ~20     'x-bonus%3A+', !2
         17        CONCAT                                           ~21     ~20, '%2C+y-bonus%3A+'
         18        CONCAT                                           ~22     ~21, !3
         19        CONCAT                                           ~23     ~22, '%0A'
         20        ECHO                                                     ~23
   13    21        INIT_FCALL                                               'round'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 2
         24        DO_ICALL                                         $24     
         25        CONCAT                                           ~25     'x-gesamt%3A+', $24
         26        CONCAT                                           ~26     ~25, '%2C+y-gesamt%3A+'
         27        INIT_FCALL                                               'round'
         28        SEND_VAR                                                 !1
         29        SEND_VAL                                                 2
         30        DO_ICALL                                         $27     
         31        CONCAT                                           ~28     ~26, $27
         32        CONCAT                                           ~29     ~28, '%0A'
         33        ECHO                                                     ~29
    7    34        PRE_INC                                                  !4
         35    >   IS_SMALLER                                               !4, 100
         36      > JMPNZ                                                    ~31, ->8
   14    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.38 ms | 1396 KiB | 15 Q