3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date("d"); // Current day $month = date("m"); // Current month $year = date("Y"); // Current year // days in month $daysInMonth = date('t',mktime(0,0,0,$month,1,$year)); // weekday on which the month starts $start = date("w", mktime(0,0,0,$month,1,$year)); // weekday on which the month ends $finish = date("w", mktime(0,0,0,$month,$daysInMonth,$year)); // if the month starts NOT on monday, then print blank days if ($start > 1) { for($i = 1; $i = $start; $i++) { $calendarBody .= "<div>nėr dienos</div>"; } } for($i = 1; $i = $daysInMonth; $i++) { $calendarBody .= "<div>diena</div>"; } echo $calendarBody;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 59
Branch analysis from position: 53
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 55
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 61
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 61
Branch analysis from position: 65
Branch analysis from position: 61
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 55
Branch analysis from position: 59
Branch analysis from position: 55
Branch analysis from position: 59
filename:       /in/lGWHs
function name:  (null)
number of ops:  67
compiled vars:  !0 = $today, !1 = $month, !2 = $year, !3 = $daysInMonth, !4 = $start, !5 = $finish, !6 = $i, !7 = $calendarBody
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd'
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm'
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !1, $10
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y'
         10        DO_ICALL                                         $12     
         11        ASSIGN                                                   !2, $12
    7    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 't'
         14        INIT_FCALL                                               'mktime'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 0
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 1
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !3, $15
    9    25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'w'
         27        INIT_FCALL                                               'mktime'
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 0
         30        SEND_VAL                                                 0
         31        SEND_VAR                                                 !1
         32        SEND_VAL                                                 1
         33        SEND_VAR                                                 !2
         34        DO_ICALL                                         $17     
         35        SEND_VAR                                                 $17
         36        DO_ICALL                                         $18     
         37        ASSIGN                                                   !4, $18
   11    38        INIT_FCALL                                               'date'
         39        SEND_VAL                                                 'w'
         40        INIT_FCALL                                               'mktime'
         41        SEND_VAL                                                 0
         42        SEND_VAL                                                 0
         43        SEND_VAL                                                 0
         44        SEND_VAR                                                 !1
         45        SEND_VAR                                                 !3
         46        SEND_VAR                                                 !2
         47        DO_ICALL                                         $20     
         48        SEND_VAR                                                 $20
         49        DO_ICALL                                         $21     
         50        ASSIGN                                                   !5, $21
   14    51        IS_SMALLER                                               1, !4
         52      > JMPZ                                                     ~23, ->59
   16    53    >   ASSIGN                                                   !6, 1
         54      > JMP                                                      ->57
   18    55    >   ASSIGN_OP                                     8          !7, '%3Cdiv%3En%C4%97r+dienos%3C%2Fdiv%3E'
   16    56        PRE_INC                                                  !6
         57    >   ASSIGN                                           ~27     !6, !4
         58      > JMPNZ                                                    ~27, ->55
   21    59    >   ASSIGN                                                   !6, 1
         60      > JMP                                                      ->63
   23    61    >   ASSIGN_OP                                     8          !7, '%3Cdiv%3Ediena%3C%2Fdiv%3E'
   21    62        PRE_INC                                                  !6
         63    >   ASSIGN                                           ~31     !6, !3
         64      > JMPNZ                                                    ~31, ->61
   25    65    >   ECHO                                                     !7
         66      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.96 ms | 1400 KiB | 17 Q