3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.94 ms | 1400 KiB | 17 Q