3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $currentDate = date('Y/m/d'); $start = strtotime('2013-12-25'); $end = strtotime('2013-12-26'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo "The date $date is within our date range\n"; } else { echo "The date $date is NOT within our date range\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/2tncM
function name:  (null)
number of ops:  34
compiled vars:  !0 = $currentDate, !1 = $start, !2 = $end, !3 = $timestamp, !4 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y%2Fm%2Fd'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    5     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '2013-12-25'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
    6    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '2013-12-26'
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    8    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
    9    19        IS_SMALLER_OR_EQUAL                              ~14     !1, !3
         20      > JMPZ_EX                                          ~14     ~14, ->23
         21    >   IS_SMALLER_OR_EQUAL                              ~15     !3, !2
         22        BOOL                                             ~14     ~15
         23    > > JMPZ                                                     ~14, ->29
   10    24    >   ROPE_INIT                                     3  ~17     'The+date+'
         25        ROPE_ADD                                      1  ~17     ~17, !4
         26        ROPE_END                                      2  ~16     ~17, '+is+within+our+date+range%0A'
         27        ECHO                                                     ~16
         28      > JMP                                                      ->33
   12    29    >   ROPE_INIT                                     3  ~20     'The+date+'
         30        ROPE_ADD                                      1  ~20     ~20, !4
         31        ROPE_END                                      2  ~19     ~20, '+is+NOT+within+our+date+range%0A'
         32        ECHO                                                     ~19
   13    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.92 ms | 1396 KiB | 19 Q