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 $currentDate is within our date range\n"; } else { 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 = 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/MKEJD
function name:  (null)
number of ops:  34
compiled vars:  !0 = $currentDate, !1 = $start, !2 = $end, !3 = $timestamp
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                                         $5      
          6        ASSIGN                                                   !0, $5
    5     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '2013-12-25'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    6    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '2013-12-26'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !3, $11
    9    19        IS_SMALLER_OR_EQUAL                              ~13     !1, !3
         20      > JMPZ_EX                                          ~13     ~13, ->23
         21    >   IS_SMALLER_OR_EQUAL                              ~14     !3, !2
         22        BOOL                                             ~13     ~14
         23    > > JMPZ                                                     ~13, ->29
   10    24    >   ROPE_INIT                                     3  ~16     'The+date+'
         25        ROPE_ADD                                      1  ~16     ~16, !0
         26        ROPE_END                                      2  ~15     ~16, '+is+within+our+date+range%0A'
         27        ECHO                                                     ~15
         28      > JMP                                                      ->33
   12    29    >   ROPE_INIT                                     3  ~19     'The+date+'
         30        ROPE_ADD                                      1  ~19     ~19, !0
         31        ROPE_END                                      2  ~18     ~19, '+is+NOT+within+our+date+range%0A'
         32        ECHO                                                     ~18
   13    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1396 KiB | 19 Q