3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $JD = 33.747; $ty = $JD; $a = 0; $b = 0; $c = 0; $d = 0; $e = 0; $f = 0; for ($i=0; $i < 50; $i++) { if ($JD >= 30) { echo "";} else { $JD -= 30; $b +=3; }; for ($i=0; $i < 50; $i++) { if ($JD >= 25) { $a++; $JD -= 25; } }; for ($i=0; $i < 50; $i++) { if ($JD >= 10) { $b++; $JD -= 10; } }; for ($i=0; $i < 50; $i++) { if ($JD >= 0.5) { $c++; $JD -= 0.5; } }; for ($i=0; $i < 50; $i++) { if ($JD >= 0.1) { $d++; $JD -= 0.1; } }; for ($i=0; $i < 50; $i++) { if ($JD >= 0.01) { $e++; $JD -= 0.01; } }; for ($i=0; $i < 50; $i++) { if ($JD >= 0.0001) { $f++; $JD -= 0.001; } } } $xd = $a + $b +$c +$e +$f; echo "<h2>Aby otrzymać grubość $ty mm potrzebujesz: <br /> $a x blacha o grubości 25mm <br /> $b x blacha o grubości 10mm <br /> $c x blacha o grubości 0.5mm <br /> $d x blacha o grubości 0.1mm <br /> $e x blacha o grubości 0.01mm <br /> $f x blacha o grubości 0,001mm <br /> razem $xd blach</h2>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 71
Branch analysis from position: 71
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 10
Branch analysis from position: 73
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 27
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 36
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 45
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 54
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
2 jumps found. (Code = 44) Position 1 = 70, Position 2 = 63
Branch analysis from position: 70
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 10
Branch analysis from position: 73
Branch analysis from position: 10
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 67
Branch analysis from position: 65
2 jumps found. (Code = 44) Position 1 = 70, Position 2 = 63
Branch analysis from position: 70
Branch analysis from position: 63
Branch analysis from position: 67
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 58
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 54
Branch analysis from position: 61
Branch analysis from position: 54
Branch analysis from position: 58
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 45
Branch analysis from position: 52
Branch analysis from position: 45
Branch analysis from position: 49
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 36
Branch analysis from position: 43
Branch analysis from position: 36
Branch analysis from position: 40
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 27
Branch analysis from position: 34
Branch analysis from position: 27
Branch analysis from position: 31
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
Branch analysis from position: 18
Branch analysis from position: 22
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
filename:       /in/U018o
function name:  (null)
number of ops:  97
compiled vars:  !0 = $JD, !1 = $ty, !2 = $a, !3 = $b, !4 = $c, !5 = $d, !6 = $e, !7 = $f, !8 = $i, !9 = $xd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 33.747
    5     1        ASSIGN                                                   !1, !0
    6     2        ASSIGN                                                   !2, 0
    7     3        ASSIGN                                                   !3, 0
    8     4        ASSIGN                                                   !4, 0
    9     5        ASSIGN                                                   !5, 0
   10     6        ASSIGN                                                   !6, 0
   11     7        ASSIGN                                                   !7, 0
   12     8        ASSIGN                                                   !8, 0
          9      > JMP                                                      ->71
   13    10    >   IS_SMALLER_OR_EQUAL                                      30, !0
         11      > JMPZ                                                     ~19, ->14
   14    12    >   ECHO                                                     ''
         13      > JMP                                                      ->16
   16    14    >   ASSIGN_OP                                     2          !0, 30
   17    15        ASSIGN_OP                                     1          !3, 3
   19    16    >   ASSIGN                                                   !8, 0
         17      > JMP                                                      ->23
   20    18    >   IS_SMALLER_OR_EQUAL                                      25, !0
         19      > JMPZ                                                     ~23, ->22
   21    20    >   PRE_INC                                                  !2
   22    21        ASSIGN_OP                                     2          !0, 25
   19    22    >   PRE_INC                                                  !8
         23    >   IS_SMALLER                                               !8, 50
         24      > JMPNZ                                                    ~27, ->18
   25    25    >   ASSIGN                                                   !8, 0
         26      > JMP                                                      ->32
   26    27    >   IS_SMALLER_OR_EQUAL                                      10, !0
         28      > JMPZ                                                     ~29, ->31
   27    29    >   PRE_INC                                                  !3
   28    30        ASSIGN_OP                                     2          !0, 10
   25    31    >   PRE_INC                                                  !8
         32    >   IS_SMALLER                                               !8, 50
         33      > JMPNZ                                                    ~33, ->27
   31    34    >   ASSIGN                                                   !8, 0
         35      > JMP                                                      ->41
   32    36    >   IS_SMALLER_OR_EQUAL                                      0.5, !0
         37      > JMPZ                                                     ~35, ->40
   33    38    >   PRE_INC                                                  !4
   34    39        ASSIGN_OP                                     2          !0, 0.5
   31    40    >   PRE_INC                                                  !8
         41    >   IS_SMALLER                                               !8, 50
         42      > JMPNZ                                                    ~39, ->36
   37    43    >   ASSIGN                                                   !8, 0
         44      > JMP                                                      ->50
   38    45    >   IS_SMALLER_OR_EQUAL                                      0.1, !0
         46      > JMPZ                                                     ~41, ->49
   39    47    >   PRE_INC                                                  !5
   40    48        ASSIGN_OP                                     2          !0, 0.1
   37    49    >   PRE_INC                                                  !8
         50    >   IS_SMALLER                                               !8, 50
         51      > JMPNZ                                                    ~45, ->45
   43    52    >   ASSIGN                                                   !8, 0
         53      > JMP                                                      ->59
   44    54    >   IS_SMALLER_OR_EQUAL                                      0.01, !0
         55      > JMPZ                                                     ~47, ->58
   45    56    >   PRE_INC                                                  !6
   46    57        ASSIGN_OP                                     2          !0, 0.01
   43    58    >   PRE_INC                                                  !8
         59    >   IS_SMALLER                                               !8, 50
         60      > JMPNZ                                                    ~51, ->54
   49    61    >   ASSIGN                                                   !8, 0
         62      > JMP                                                      ->68
   50    63    >   IS_SMALLER_OR_EQUAL                                      0.0001, !0
         64      > JMPZ                                                     ~53, ->67
   51    65    >   PRE_INC                                                  !7
   52    66        ASSIGN_OP                                     2          !0, 0.001
   49    67    >   PRE_INC                                                  !8
         68    >   IS_SMALLER                                               !8, 50
         69      > JMPNZ                                                    ~57, ->63
   12    70    >   PRE_INC                                                  !8
         71    >   IS_SMALLER                                               !8, 50
         72      > JMPNZ                                                    ~59, ->10
   56    73    >   ADD                                              ~60     !2, !3
         74        ADD                                              ~61     ~60, !4
         75        ADD                                              ~62     ~61, !6
         76        ADD                                              ~63     ~62, !7
         77        ASSIGN                                                   !9, ~63
   58    78        ROPE_INIT                                    17  ~66     '%3Ch2%3EAby+otrzyma%C4%87+grubo%C5%9B%C4%87+'
         79        ROPE_ADD                                      1  ~66     ~66, !1
         80        ROPE_ADD                                      2  ~66     ~66, '+mm+potrzebujesz%3A+%0A+++%3Cbr+%2F%3E+'
   59    81        ROPE_ADD                                      3  ~66     ~66, !2
         82        ROPE_ADD                                      4  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+25mm+%0A+++%3Cbr+%2F%3E+'
   60    83        ROPE_ADD                                      5  ~66     ~66, !3
         84        ROPE_ADD                                      6  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+10mm+%0A+++%3Cbr+%2F%3E+'
   61    85        ROPE_ADD                                      7  ~66     ~66, !4
         86        ROPE_ADD                                      8  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+0.5mm+%0A+++%3Cbr+%2F%3E+'
   62    87        ROPE_ADD                                      9  ~66     ~66, !5
         88        ROPE_ADD                                     10  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+0.1mm+%0A+++%3Cbr+%2F%3E+'
   63    89        ROPE_ADD                                     11  ~66     ~66, !6
         90        ROPE_ADD                                     12  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+0.01mm+%0A+++%3Cbr+%2F%3E+'
   64    91        ROPE_ADD                                     13  ~66     ~66, !7
         92        ROPE_ADD                                     14  ~66     ~66, '+x+blacha+o+grubo%C5%9Bci+0%2C001mm+%3Cbr+%2F%3E+razem+'
         93        ROPE_ADD                                     15  ~66     ~66, !9
         94        ROPE_END                                     16  ~65     ~66, '+blach%3C%2Fh2%3E'
         95        ECHO                                                     ~65
   65    96      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.64 ms | 1407 KiB | 13 Q