3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array( "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември" ); $days_in_month = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ); $current_month_index = date("n") - 1; ?> <html> <body> <table> <tr> <td colspan="2"><a href="#"><?php echo $months[$current_month_index - 1] ?></a></td> <td colspan="3"><?php echo $months[$current_month_index] ?></td> <td colspan="2"><a href="#"><?php echo $months[$current_month_index + 1] ?></a></td> </tr> <tr> <td>Понеделник</td> <td>Вторник</td> <td>Сряда</td> <td>Четвъртък</td> <td>Петък</td> <td>Събота</td> <td>Неделя</td> </tr> <?php for ($i = 1; $i <= $days_in_month[$current_month_index]; $i++) { ?> <?php if ($i % 5 === 1) { ?> <?php if ($i != 1) { ?> </tr> <?php } ?> <tr> <td></td> <td></td> <?php } ?> <td><?php echo $i ?></td> <?php } ?> </tr> </table> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 21
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 30
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 21
Branch analysis from position: 37
Branch analysis from position: 21
Branch analysis from position: 29
Branch analysis from position: 30
filename:       /in/qcTIZ
function name:  (null)
number of ops:  39
compiled vars:  !0 = $months, !1 = $days_in_month, !2 = $current_month_index, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   12     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'n'
          4        DO_ICALL                                         $6      
          5        SUB                                              ~7      $6, 1
          6        ASSIGN                                                   !2, ~7
   14     7        ECHO                                                     '%3Chtml%3E%0A++%3Cbody%3E%0A++++%3Ctable%3E%0A++++++%3Ctr%3E%0A++++++++%3Ctd+colspan%3D%222%22%3E%3Ca+href%3D%22%23%22%3E'
   18     8        SUB                                              ~9      !2, 1
          9        FETCH_DIM_R                                      ~10     !0, ~9
         10        ECHO                                                     ~10
         11        ECHO                                                     '%3C%2Fa%3E%3C%2Ftd%3E%0A++++++++%3Ctd+colspan%3D%223%22%3E'
   19    12        FETCH_DIM_R                                      ~11     !0, !2
         13        ECHO                                                     ~11
         14        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd+colspan%3D%222%22%3E%3Ca+href%3D%22%23%22%3E'
   20    15        ADD                                              ~12     !2, 1
         16        FETCH_DIM_R                                      ~13     !0, ~12
         17        ECHO                                                     ~13
         18        ECHO                                                     '%3C%2Fa%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++%3Ctr%3E%0A++++++++%3Ctd%3E%D0%9F%D0%BE%D0%BD%D0%B5%D0%B4%D0%B5%D0%BB%D0%BD%D0%B8%D0%BA%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%92%D1%82%D0%BE%D1%80%D0%BD%D0%B8%D0%BA%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%A1%D1%80%D1%8F%D0%B4%D0%B0%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%A7%D0%B5%D1%82%D0%B2%D1%8A%D1%80%D1%82%D1%8A%D0%BA%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%9F%D0%B5%D1%82%D1%8A%D0%BA%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%A1%D1%8A%D0%B1%D0%BE%D1%82%D0%B0%3C%2Ftd%3E%0A++++++++%3Ctd%3E%D0%9D%D0%B5%D0%B4%D0%B5%D0%BB%D1%8F%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++'
   31    19        ASSIGN                                                   !3, 1
         20      > JMP                                                      ->34
   32    21    >   ECHO                                                     '++++++++'
         22        MOD                                              ~15     !3, 5
         23        IS_IDENTICAL                                             ~15, 1
         24      > JMPZ                                                     ~16, ->30
   33    25    >   ECHO                                                     '++++++++++'
         26        IS_NOT_EQUAL                                             !3, 1
         27      > JMPZ                                                     ~17, ->29
   34    28    >   ECHO                                                     '++++++++++++%3C%2Ftr%3E++++++++++++%0A++++++++++'
   36    29    >   ECHO                                                     '%09%09++%3Ctr%3E%0A++++++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++'
   40    30    >   ECHO                                                     '++++++++%3Ctd%3E'
         31        ECHO                                                     !3
         32        ECHO                                                     '%3C%2Ftd%3E%0A++++++'
   31    33        PRE_INC                                                  !3
         34    >   FETCH_DIM_R                                      ~19     !1, !2
         35        IS_SMALLER_OR_EQUAL                                      !3, ~19
         36      > JMPNZ                                                    ~20, ->21
   42    37    >   ECHO                                                     '++++++%3C%2Ftr%3E%0A++++%3C%2Ftable%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   45    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1400 KiB | 15 Q