3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "8:00"; $end = "5:00"; $now = "10:00"; //Check if we are within the set time $start = Date("Hi", strtotime($start)); $end = Date("Hi", strtotime($end)); $now = Date("Hi", strtotime($now)); if($start < $now && $end > $now){ //We need to validate before sending. echo "Good"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 31
filename:       /in/rdarr
function name:  (null)
number of ops:  34
compiled vars:  !0 = $start, !1 = $end, !2 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '8%3A00'
    4     1        ASSIGN                                                   !1, '5%3A00'
    5     2        ASSIGN                                                   !2, '10%3A00'
    8     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Hi'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !0, $7
    9    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Hi'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
   10    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'Hi'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !2, $13
   12    27        IS_SMALLER                                       ~15     !0, !2
         28      > JMPZ_EX                                          ~15     ~15, ->31
         29    >   IS_SMALLER                                       ~16     !2, !1
         30        BOOL                                             ~15     ~16
         31    > > JMPZ                                                     ~15, ->33
   14    32    >   ECHO                                                     'Good'
   15    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.34 ms | 1401 KiB | 17 Q