3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('m/d/Y'); $currentDate = date('m/d/Y'); $start = strtotime('01/12/14'); $end = strtotime('02/12/14'); $end_jan = strtotime('01/31/14'); $end_feb = strtotime('02/28/14'); $end_mar = strtotime('03/31/14'); $end_apr = strtotime('04/30/14'); $end_may = strtotime('05/31/14'); $end_jun = strtotime('06/30/14'); $end_jul = strtotime('07/31/14'); $end_aug = strtotime('08/31/14'); $end_sep = strtotime('09/30/14'); $end_oct = strtotime('10/31/14'); $end_nov = strtotime('11/30/14'); $end_dec = strtotime('12/31/14'); $current = strtotime($currentDate); $timestamp = strtotime($currentDate); if($timestamp >= $current && $timestamp <= $end_jan) { echo "The date $currentDate is in January";} else { echo " timestamp is $timestamp"; echo "start is $start"; echo "end is $end "; echo "The date $currentDate is NOT within our date range\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 74, Position 2 = 76
Branch analysis from position: 74
2 jumps found. (Code = 43) Position 1 = 77, Position 2 = 82
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 96
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 76
filename:       /in/Q6mJF
function name:  (null)
number of ops:  97
compiled vars:  !0 = $currentDate, !1 = $start, !2 = $end, !3 = $end_jan, !4 = $end_feb, !5 = $end_mar, !6 = $end_apr, !7 = $end_may, !8 = $end_jun, !9 = $end_jul, !10 = $end_aug, !11 = $end_sep, !12 = $end_oct, !13 = $end_nov, !14 = $end_dec, !15 = $current, !16 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm%2Fd%2FY'
          2        DO_ICALL                                         $17     
          3        ASSIGN                                                   !0, $17
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm%2Fd%2FY'
          6        DO_ICALL                                         $19     
          7        ASSIGN                                                   !0, $19
    5     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '01%2F12%2F14'
         10        DO_ICALL                                         $21     
         11        ASSIGN                                                   !1, $21
    6    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '02%2F12%2F14'
         14        DO_ICALL                                         $23     
         15        ASSIGN                                                   !2, $23
    8    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '01%2F31%2F14'
         18        DO_ICALL                                         $25     
         19        ASSIGN                                                   !3, $25
    9    20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 '02%2F28%2F14'
         22        DO_ICALL                                         $27     
         23        ASSIGN                                                   !4, $27
   10    24        INIT_FCALL                                               'strtotime'
         25        SEND_VAL                                                 '03%2F31%2F14'
         26        DO_ICALL                                         $29     
         27        ASSIGN                                                   !5, $29
   11    28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 '04%2F30%2F14'
         30        DO_ICALL                                         $31     
         31        ASSIGN                                                   !6, $31
   12    32        INIT_FCALL                                               'strtotime'
         33        SEND_VAL                                                 '05%2F31%2F14'
         34        DO_ICALL                                         $33     
         35        ASSIGN                                                   !7, $33
   13    36        INIT_FCALL                                               'strtotime'
         37        SEND_VAL                                                 '06%2F30%2F14'
         38        DO_ICALL                                         $35     
         39        ASSIGN                                                   !8, $35
   14    40        INIT_FCALL                                               'strtotime'
         41        SEND_VAL                                                 '07%2F31%2F14'
         42        DO_ICALL                                         $37     
         43        ASSIGN                                                   !9, $37
   15    44        INIT_FCALL                                               'strtotime'
         45        SEND_VAL                                                 '08%2F31%2F14'
         46        DO_ICALL                                         $39     
         47        ASSIGN                                                   !10, $39
   16    48        INIT_FCALL                                               'strtotime'
         49        SEND_VAL                                                 '09%2F30%2F14'
         50        DO_ICALL                                         $41     
         51        ASSIGN                                                   !11, $41
   17    52        INIT_FCALL                                               'strtotime'
         53        SEND_VAL                                                 '10%2F31%2F14'
         54        DO_ICALL                                         $43     
         55        ASSIGN                                                   !12, $43
   18    56        INIT_FCALL                                               'strtotime'
         57        SEND_VAL                                                 '11%2F30%2F14'
         58        DO_ICALL                                         $45     
         59        ASSIGN                                                   !13, $45
   19    60        INIT_FCALL                                               'strtotime'
         61        SEND_VAL                                                 '12%2F31%2F14'
         62        DO_ICALL                                         $47     
         63        ASSIGN                                                   !14, $47
   21    64        INIT_FCALL                                               'strtotime'
         65        SEND_VAR                                                 !0
         66        DO_ICALL                                         $49     
         67        ASSIGN                                                   !15, $49
   22    68        INIT_FCALL                                               'strtotime'
         69        SEND_VAR                                                 !0
         70        DO_ICALL                                         $51     
         71        ASSIGN                                                   !16, $51
   23    72        IS_SMALLER_OR_EQUAL                              ~53     !15, !16
         73      > JMPZ_EX                                          ~53     ~53, ->76
         74    >   IS_SMALLER_OR_EQUAL                              ~54     !16, !3
         75        BOOL                                             ~53     ~54
         76    > > JMPZ                                                     ~53, ->82
   24    77    >   ROPE_INIT                                     3  ~56     'The+date+'
         78        ROPE_ADD                                      1  ~56     ~56, !0
         79        ROPE_END                                      2  ~55     ~56, '+is+in+January'
         80        ECHO                                                     ~55
         81      > JMP                                                      ->96
   26    82    >   NOP                                                      
         83        FAST_CONCAT                                      ~58     '+timestamp+is+', !16
         84        ECHO                                                     ~58
   27    85        NOP                                                      
         86        FAST_CONCAT                                      ~59     'start+is+', !1
         87        ECHO                                                     ~59
   28    88        ROPE_INIT                                     3  ~61     'end+is+'
         89        ROPE_ADD                                      1  ~61     ~61, !2
         90        ROPE_END                                      2  ~60     ~61, '+'
         91        ECHO                                                     ~60
   29    92        ROPE_INIT                                     3  ~64     'The+date+'
         93        ROPE_ADD                                      1  ~64     ~64, !0
         94        ROPE_END                                      2  ~63     ~64, '+is+NOT+within+our+date+range%0A'
         95        ECHO                                                     ~63
   30    96    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.06 ms | 1404 KiB | 17 Q