3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('01-15-14'); $start = strtotime('01-12-14'); $end = strtotime('02-12-14'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo $currentDate; echo "The date $currentDate is within our date range\n"; } 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 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/8DXYa
function name:  (null)
number of ops:  42
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'
          1        SEND_VAL                                                 '01-15-14'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '01-12-14'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    5     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '02-12-14'
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
    8    16        IS_SMALLER_OR_EQUAL                              ~12     !1, !3
         17      > JMPZ_EX                                          ~12     ~12, ->20
         18    >   IS_SMALLER_OR_EQUAL                              ~13     !3, !2
         19        BOOL                                             ~12     ~13
         20    > > JMPZ                                                     ~12, ->27
    9    21    >   ECHO                                                     !0
   10    22        ROPE_INIT                                     3  ~15     'The+date+'
         23        ROPE_ADD                                      1  ~15     ~15, !0
         24        ROPE_END                                      2  ~14     ~15, '+is+within+our+date+range%0A'
         25        ECHO                                                     ~14
         26      > JMP                                                      ->41
   12    27    >   NOP                                                      
         28        FAST_CONCAT                                      ~17     '+timestamp+is+', !3
         29        ECHO                                                     ~17
   13    30        NOP                                                      
         31        FAST_CONCAT                                      ~18     'start+is+', !1
         32        ECHO                                                     ~18
   14    33        ROPE_INIT                                     3  ~20     'end+is+'
         34        ROPE_ADD                                      1  ~20     ~20, !2
         35        ROPE_END                                      2  ~19     ~20, '+'
         36        ECHO                                                     ~19
   15    37        ROPE_INIT                                     3  ~23     'The+date+'
         38        ROPE_ADD                                      1  ~23     ~23, !0
         39        ROPE_END                                      2  ~22     ~23, '+is+NOT+within+our+date+range%0A'
         40        ECHO                                                     ~22
   16    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.67 ms | 1392 KiB | 17 Q