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--; } 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 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r3C09
function name:  (null)
number of ops:  36
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                                                      ->27
    9     7    >   IS_EQUAL                                                 !0, 1
          8      > JMPZ                                                     ~9, ->12
   10     9    >   ASSIGN                                                   !0, 12
   11    10        PRE_DEC                                                  !2
         11      > JMP                                                      ->14
   13    12    >   PRE_DEC                                                  !0
   14    13        ASSIGN                                                   !1, 16
   16    14    >   INIT_FCALL                                               'date'
         15        SEND_VAL                                                 't'
         16        INIT_FCALL                                               'strtotime'
         17        ROPE_INIT                                     5  ~15     !2
         18        ROPE_ADD                                      1  ~15     ~15, '+-+'
         19        ROPE_ADD                                      2  ~15     ~15, !0
         20        ROPE_ADD                                      3  ~15     ~15, '+-+'
         21        ROPE_END                                      4  ~14     ~15, !1
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                         $18     
         24        SEND_VAR                                                 $18
         25        DO_ICALL                                         $19     
         26        ASSIGN                                                   !3, $19
   23    27    >   ROPE_INIT                                     7  ~22     !2
         28        ROPE_ADD                                      1  ~22     ~22, '+'
         29        ROPE_ADD                                      2  ~22     ~22, !0
         30        ROPE_ADD                                      3  ~22     ~22, '+'
         31        ROPE_ADD                                      4  ~22     ~22, !1
         32        ROPE_ADD                                      5  ~22     ~22, '++++'
         33        ROPE_END                                      6  ~21     ~22, !3
         34        ECHO                                                     ~21
   25    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.35 ms | 1396 KiB | 17 Q