3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 1; //date("n"); $day = 13; //date("j"); $year = 2014; //date("Y"); if ($day > 15) { $day = 1; } else { if ($month == 1) { $month = 12; $year--; $day = 16; } else { $month--; $day = 16; } $daysinmonth = date("t", strtotime("$year - $month - $day")); } //$rangeEnd = date("Y-m-d 23:59:59", strtotime("last month")); //$rangeStart = date("Y-m-d 00:00:00", strtotime($rangeEnd." -6 days")); echo "$year $month $day $daysinmonth"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjUO2
function name:  (null)
number of ops:  37
compiled vars:  !0 = $month, !1 = $day, !2 = $year, !3 = $daysinmonth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 13
    4     2        ASSIGN                                                   !2, 2014
    6     3        IS_SMALLER                                               15, !1
          4      > JMPZ                                                     ~7, ->7
    7     5    >   ASSIGN                                                   !1, 1
          6      > JMP                                                      ->28
    9     7    >   IS_EQUAL                                                 !0, 1
          8      > JMPZ                                                     ~9, ->13
   10     9    >   ASSIGN                                                   !0, 12
   11    10        PRE_DEC                                                  !2
   12    11        ASSIGN                                                   !1, 16
         12      > JMP                                                      ->15
   14    13    >   PRE_DEC                                                  !0
   15    14        ASSIGN                                                   !1, 16
   17    15    >   INIT_FCALL                                               'date'
         16        SEND_VAL                                                 't'
         17        INIT_FCALL                                               'strtotime'
         18        ROPE_INIT                                     5  ~16     !2
         19        ROPE_ADD                                      1  ~16     ~16, '+-+'
         20        ROPE_ADD                                      2  ~16     ~16, !0
         21        ROPE_ADD                                      3  ~16     ~16, '+-+'
         22        ROPE_END                                      4  ~15     ~16, !1
         23        SEND_VAL                                                 ~15
         24        DO_ICALL                                         $19     
         25        SEND_VAR                                                 $19
         26        DO_ICALL                                         $20     
         27        ASSIGN                                                   !3, $20
   24    28    >   ROPE_INIT                                     7  ~23     !2
         29        ROPE_ADD                                      1  ~23     ~23, '+'
         30        ROPE_ADD                                      2  ~23     ~23, !0
         31        ROPE_ADD                                      3  ~23     ~23, '+'
         32        ROPE_ADD                                      4  ~23     ~23, !1
         33        ROPE_ADD                                      5  ~23     ~23, '++++'
         34        ROPE_END                                      6  ~22     ~23, !3
         35        ECHO                                                     ~22
   26    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.86 ms | 1396 KiB | 17 Q