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'); $current = strtotime($currentDate); $timestamp = strtotime($currentDate); if($timestamp >= $current && $timestamp <= $end_jan) { echo $currentDate; 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 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 39
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/oYFup
function name:  (null)
number of ops:  54
compiled vars:  !0 = $currentDate, !1 = $start, !2 = $end, !3 = $end_jan, !4 = $current, !5 = $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                                         $6      
          3        ASSIGN                                                   !0, $6
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm%2Fd%2FY'
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !0, $8
    5     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '01%2F12%2F14'
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !1, $10
    6    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '02%2F12%2F14'
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !2, $12
    8    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '01%2F31%2F14'
         18        DO_ICALL                                         $14     
         19        ASSIGN                                                   !3, $14
   10    20        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !4, $16
   11    24        INIT_FCALL                                               'strtotime'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $18     
         27        ASSIGN                                                   !5, $18
   12    28        IS_SMALLER_OR_EQUAL                              ~20     !4, !5
         29      > JMPZ_EX                                          ~20     ~20, ->32
         30    >   IS_SMALLER_OR_EQUAL                              ~21     !5, !3
         31        BOOL                                             ~20     ~21
         32    > > JMPZ                                                     ~20, ->39
   13    33    >   ECHO                                                     !0
   14    34        ROPE_INIT                                     3  ~23     'The+date+'
         35        ROPE_ADD                                      1  ~23     ~23, !0
         36        ROPE_END                                      2  ~22     ~23, '+is+in+January'
         37        ECHO                                                     ~22
         38      > JMP                                                      ->53
   16    39    >   NOP                                                      
         40        FAST_CONCAT                                      ~25     '+timestamp+is+', !5
         41        ECHO                                                     ~25
   17    42        NOP                                                      
         43        FAST_CONCAT                                      ~26     'start+is+', !1
         44        ECHO                                                     ~26
   18    45        ROPE_INIT                                     3  ~28     'end+is+'
         46        ROPE_ADD                                      1  ~28     ~28, !2
         47        ROPE_END                                      2  ~27     ~28, '+'
         48        ECHO                                                     ~27
   19    49        ROPE_INIT                                     3  ~31     'The+date+'
         50        ROPE_ADD                                      1  ~31     ~31, !0
         51        ROPE_END                                      2  ~30     ~31, '+is+NOT+within+our+date+range%0A'
         52        ECHO                                                     ~30
   20    53    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.05 ms | 1400 KiB | 17 Q