3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $start = strtotime('1 January 2021'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif; echo "\n"; $now = strtotime('now'); $start = strtotime('1 November 2020'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
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: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 19
2 jumps found. (Code = 46) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
Branch analysis from position: 37
Branch analysis from position: 16
filename:       /in/KAvQ2
function name:  (null)
number of ops:  42
compiled vars:  !0 = $now, !1 = $start, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '1+January+2021'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '31+January+2021'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    7    12        IS_SMALLER_OR_EQUAL                              ~9      !1, !0
         13      > JMPZ_EX                                          ~9      ~9, ->16
         14    >   IS_SMALLER_OR_EQUAL                              ~10     !0, !2
         15        BOOL                                             ~9      ~10
         16    > > JMPZ                                                     ~9, ->19
    8    17    >   ECHO                                                     'true'
    7    18      > JMP                                                      ->20
   10    19    >   ECHO                                                     'false'
   13    20    >   ECHO                                                     '%0A'
   15    21        INIT_FCALL                                               'strtotime'
         22        SEND_VAL                                                 'now'
         23        DO_ICALL                                         $11     
         24        ASSIGN                                                   !0, $11
   16    25        INIT_FCALL                                               'strtotime'
         26        SEND_VAL                                                 '1+November+2020'
         27        DO_ICALL                                         $13     
         28        ASSIGN                                                   !1, $13
   17    29        INIT_FCALL                                               'strtotime'
         30        SEND_VAL                                                 '31+January+2021'
         31        DO_ICALL                                         $15     
         32        ASSIGN                                                   !2, $15
   19    33        IS_SMALLER_OR_EQUAL                              ~17     !1, !0
         34      > JMPZ_EX                                          ~17     ~17, ->37
         35    >   IS_SMALLER_OR_EQUAL                              ~18     !0, !2
         36        BOOL                                             ~17     ~18
         37    > > JMPZ                                                     ~17, ->40
   20    38    >   ECHO                                                     'true'
   19    39      > JMP                                                      ->41
   22    40    >   ECHO                                                     'false'
   24    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.19 ms | 1015 KiB | 14 Q