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; $head_total = count($head); if($remainder == 1) echo "Header " .$header++. "\n"; echo "Obat Ke " . $head_total . "\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 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 3
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 39
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 33
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 33
Branch analysis from position: 39
Branch analysis from position: 33
Branch analysis from position: 39
Branch analysis from position: 3
Branch analysis from position: 23
Branch analysis from position: 17
filename:       /in/lIsT5
function name:  (null)
number of ops:  40
compiled vars:  !0 = $i, !1 = $header, !2 = $hitungLoopingObat, !3 = $remainder, !4 = $head, !5 = $head_total, !6 = $loncat, !7 = $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                                              ~11     !0, 1
          4        MOD                                              ~12     ~11, 5
          5        ASSIGN                                                   !3, ~12
   10     6        ADD                                              ~14     !3, !0
          7        MOD                                              ~15     ~14, 5
          8        ASSIGN                                                   !4, ~15
   12     9        COUNT                                            ~17     !4
         10        ASSIGN                                                   !5, ~17
   14    11        IS_EQUAL                                                 !3, 1
         12      > JMPZ                                                     ~19, ->17
   15    13    >   POST_INC                                         ~20     !1
         14        CONCAT                                           ~21     'Header+', ~20
         15        CONCAT                                           ~22     ~21, '%0A'
         16        ECHO                                                     ~22
   17    17    >   CONCAT                                           ~23     'Obat+Ke+', !5
         18        CONCAT                                           ~24     ~23, '%0A'
         19        ECHO                                                     ~24
   19    20        IS_EQUAL                                                 !3, 0
         21      > JMPZ                                                     ~25, ->23
   20    22    >   ECHO                                                     'new+line+%0A'
   23    23    >   PRE_INC                                                  !0
   26    24        IS_SMALLER_OR_EQUAL                                      !0, !2
         25      > JMPNZ                                                    ~27, ->3
   27    26    >   IS_SMALLER                                               0, !3
         27      > JMPZ                                                     ~28, ->39
   28    28    >   SUB                                              ~29     5, !3
         29        ADD                                              ~30     ~29, 1
         30        ASSIGN                                                   !6, ~30
   30    31        ASSIGN                                                   !7, 0
         32      > JMP                                                      ->37
   32    33    >   CONCAT                                           ~33     'Sisa+New+Line+', !6
         34        CONCAT                                           ~34     ~33, '%0A'
         35        ECHO                                                     ~34
   30    36        PRE_INC                                                  !7
         37    >   IS_SMALLER                                               !7, !6
         38      > JMPNZ                                                    ~36, ->33
   35    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.83 ms | 1399 KiB | 13 Q