3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $header = 0; $hitungLoopingObat= 9; do{ $remainder = ($i+1) % 5; $head = ($remainder+$i) % 5; if($remainder == 1) echo "Header " .$header++. "\n"; echo "Obat Ke " . $remainder . "\n"; if( $remainder == 0) { echo "new line \n"; } $i++; } while($i <= $hitungLoopingObat); if($remainder > 0){ $loncat = (5 - $remainder)+1; for($j=0; $j<$loncat; $j++) { echo "Sisa New Line " .$loncat. "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 3
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 31
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 31
Branch analysis from position: 37
Branch analysis from position: 31
Branch analysis from position: 37
Branch analysis from position: 3
Branch analysis from position: 21
Branch analysis from position: 15
filename:       /in/d9o7R
function name:  (null)
number of ops:  38
compiled vars:  !0 = $i, !1 = $header, !2 = $hitungLoopingObat, !3 = $remainder, !4 = $head, !5 = $loncat, !6 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 9
    9     3    >   ADD                                              ~10     !0, 1
          4        MOD                                              ~11     ~10, 5
          5        ASSIGN                                                   !3, ~11
   10     6        ADD                                              ~13     !3, !0
          7        MOD                                              ~14     ~13, 5
          8        ASSIGN                                                   !4, ~14
   12     9        IS_EQUAL                                                 !3, 1
         10      > JMPZ                                                     ~16, ->15
   13    11    >   POST_INC                                         ~17     !1
         12        CONCAT                                           ~18     'Header+', ~17
         13        CONCAT                                           ~19     ~18, '%0A'
         14        ECHO                                                     ~19
   15    15    >   CONCAT                                           ~20     'Obat+Ke+', !3
         16        CONCAT                                           ~21     ~20, '%0A'
         17        ECHO                                                     ~21
   17    18        IS_EQUAL                                                 !3, 0
         19      > JMPZ                                                     ~22, ->21
   18    20    >   ECHO                                                     'new+line+%0A'
   21    21    >   PRE_INC                                                  !0
   24    22        IS_SMALLER_OR_EQUAL                                      !0, !2
         23      > JMPNZ                                                    ~24, ->3
   25    24    >   IS_SMALLER                                               0, !3
         25      > JMPZ                                                     ~25, ->37
   26    26    >   SUB                                              ~26     5, !3
         27        ADD                                              ~27     ~26, 1
         28        ASSIGN                                                   !5, ~27
   28    29        ASSIGN                                                   !6, 0
         30      > JMP                                                      ->35
   30    31    >   CONCAT                                           ~30     'Sisa+New+Line+', !5
         32        CONCAT                                           ~31     ~30, '%0A'
         33        ECHO                                                     ~31
   28    34        PRE_INC                                                  !6
         35    >   IS_SMALLER                                               !6, !5
         36      > JMPNZ                                                    ~33, ->31
   33    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.05 ms | 1399 KiB | 13 Q