3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = "2022-11-01"; $to = "2022-11-05"; $check = "2022-11-04"; if($from <= $check AND $check <= $to) { echo $check.' is between '.$from.' and '.$to; } else { echo $check.' is not between '.$from.' and '.$to; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/A1IBh
function name:  (null)
number of ops:  20
compiled vars:  !0 = $from, !1 = $to, !2 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2022-11-01'
    4     1        ASSIGN                                                   !1, '2022-11-05'
    5     2        ASSIGN                                                   !2, '2022-11-04'
    6     3        IS_SMALLER_OR_EQUAL                              ~6      !0, !2
          4      > JMPZ_EX                                          ~6      ~6, ->7
          5    >   IS_SMALLER_OR_EQUAL                              ~7      !2, !1
          6        BOOL                                             ~6      ~7
          7    > > JMPZ                                                     ~6, ->14
    7     8    >   CONCAT                                           ~8      !2, '+is+between+'
          9        CONCAT                                           ~9      ~8, !0
         10        CONCAT                                           ~10     ~9, '+and+'
         11        CONCAT                                           ~11     ~10, !1
         12        ECHO                                                     ~11
    6    13      > JMP                                                      ->19
    9    14    >   CONCAT                                           ~12     !2, '+is+not+between+'
         15        CONCAT                                           ~13     ~12, !0
         16        CONCAT                                           ~14     ~13, '+and+'
         17        CONCAT                                           ~15     ~14, !1
         18        ECHO                                                     ~15
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.11 ms | 994 KiB | 13 Q