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> <tr> <?php for ($i = 1; $i <= $days_in_month[$current_month_index]; $i++) { ?> <?php if ($i % 7 === 1) { ?> <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 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 21
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 21
Branch analysis from position: 33
Branch analysis from position: 21
Branch analysis from position: 26
filename:       /in/fHPgF
function name:  (null)
number of ops:  35
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++++++%3Ctr%3E%0A++++++++'
   32    19        ASSIGN                                                   !3, 1
         20      > JMP                                                      ->30
   33    21    >   ECHO                                                     '++++++++++'
         22        MOD                                              ~15     !3, 7
         23        IS_IDENTICAL                                             ~15, 1
         24      > JMPZ                                                     ~16, ->26
   34    25    >   ECHO                                                     '++++++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++++'
   37    26    >   ECHO                                                     '++++++++++%3Ctd%3E'
         27        ECHO                                                     !3
         28        ECHO                                                     '%3C%2Ftd%3E%0A++++++++'
   32    29        PRE_INC                                                  !3
         30    >   FETCH_DIM_R                                      ~18     !1, !2
         31        IS_SMALLER_OR_EQUAL                                      !3, ~18
         32      > JMPNZ                                                    ~19, ->21
   39    33    >   ECHO                                                     '++++++%3C%2Ftr%3E%0A++++%3C%2Ftable%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   42    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.69 ms | 1400 KiB | 15 Q