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 $calendarBody = ""; // 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 == 30; $i++) { echo "a"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 60
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 56
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 66, Position 2 = 62
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 62
2 jumps found. (Code = 44) Position 1 = 66, Position 2 = 62
Branch analysis from position: 66
Branch analysis from position: 62
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 56
Branch analysis from position: 60
Branch analysis from position: 56
Branch analysis from position: 60
filename:       /in/EMXPd
function name:  (null)
number of ops:  67
compiled vars:  !0 = $today, !1 = $month, !2 = $year, !3 = $calendarBody, !4 = $daysInMonth, !5 = $start, !6 = $finish, !7 = $i
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
    5    12        ASSIGN                                                   !3, ''
    8    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 't'
         15        INIT_FCALL                                               'mktime'
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 0
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 1
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $15     
         23        SEND_VAR                                                 $15
         24        DO_ICALL                                         $16     
         25        ASSIGN                                                   !4, $16
   10    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'w'
         28        INIT_FCALL                                               'mktime'
         29        SEND_VAL                                                 0
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 0
         32        SEND_VAR                                                 !1
         33        SEND_VAL                                                 1
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                         $18     
         36        SEND_VAR                                                 $18
         37        DO_ICALL                                         $19     
         38        ASSIGN                                                   !5, $19
   12    39        INIT_FCALL                                               'date'
         40        SEND_VAL                                                 'w'
         41        INIT_FCALL                                               'mktime'
         42        SEND_VAL                                                 0
         43        SEND_VAL                                                 0
         44        SEND_VAL                                                 0
         45        SEND_VAR                                                 !1
         46        SEND_VAR                                                 !4
         47        SEND_VAR                                                 !2
         48        DO_ICALL                                         $21     
         49        SEND_VAR                                                 $21
         50        DO_ICALL                                         $22     
         51        ASSIGN                                                   !6, $22
   15    52        IS_SMALLER                                               1, !5
         53      > JMPZ                                                     ~24, ->60
   17    54    >   ASSIGN                                                   !7, 1
         55      > JMP                                                      ->58
   19    56    >   ASSIGN_OP                                     8          !3, '%3Cdiv%3En%C4%97r+dienos%3C%2Fdiv%3E'
   17    57        PRE_INC                                                  !7
         58    >   ASSIGN                                           ~28     !7, !5
         59      > JMPNZ                                                    ~28, ->56
   22    60    >   ASSIGN                                                   !7, 1
         61      > JMP                                                      ->64
   24    62    >   ECHO                                                     'a'
   22    63        PRE_INC                                                  !7
         64    >   IS_EQUAL                                                 !7, 30
         65      > JMPNZ                                                    ~31, ->62
   25    66    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.15 ms | 1392 KiB | 17 Q