3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 609; $tax= 0.20; $subtax= ($v1*$tax); for ($month = 6; $month < 12; $month++) { //$v1 = ($v1-$subtax); echo "v1: {$v1}\nsubtax: {$subtax}\n"; $v1 -= $subtax; echo "v1 - subtax: $v1\n\n"; } /* 487.20 389.76 311.81 249.45 199.56 */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/paKTh
function name:  (null)
number of ops:  21
compiled vars:  !0 = $v1, !1 = $tax, !2 = $subtax, !3 = $month
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 609
    3     1        ASSIGN                                                   !1, 0.2
    4     2        MUL                                              ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    6     4        ASSIGN                                                   !3, 6
          5      > JMP                                                      ->18
    9     6    >   ROPE_INIT                                     5  ~10     'v1%3A++++++++++'
          7        ROPE_ADD                                      1  ~10     ~10, !0
          8        ROPE_ADD                                      2  ~10     ~10, '%0Asubtax%3A++++++'
          9        ROPE_ADD                                      3  ~10     ~10, !2
         10        ROPE_END                                      4  ~9      ~10, '%0A'
         11        ECHO                                                     ~9
   10    12        ASSIGN_OP                                     2          !0, !2
   11    13        ROPE_INIT                                     3  ~15     'v1+-+subtax%3A+'
         14        ROPE_ADD                                      1  ~15     ~15, !0
         15        ROPE_END                                      2  ~14     ~15, '%0A%0A'
         16        ECHO                                                     ~14
    6    17        PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 12
         19      > JMPNZ                                                    ~18, ->6
   20    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.49 ms | 1398 KiB | 13 Q