3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('d-m-Y'); $our = date('H:i:s'); //$our = '23:10:00'; $nextDay = date('Y-m-d', strtotime('now + 1day')); if($our <= '8:00:00' && $our >= '22:00:00'): //hello endif; var_dump($our);
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 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 20
filename:       /in/5jTgO
function name:  (null)
number of ops:  25
compiled vars:  !0 = $today, !1 = $our, !2 = $nextDay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd-m-Y'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'H%3Ai%3As'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    7     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'now+%2B+1day'
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
   11    16        IS_SMALLER_OR_EQUAL                              ~10     !1, '8%3A00%3A00'
         17      > JMPZ_EX                                          ~10     ~10, ->20
         18    >   IS_SMALLER_OR_EQUAL                              ~11     '22%3A00%3A00', !1
         19        BOOL                                             ~10     ~11
         20    > > JMPZ                                                     ~10, ->21
   14    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.38 ms | 1000 KiB | 16 Q