3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime("now"); $hourString = $date->format('H:i'); if ( strtotime($hourString) > strtotime('12:00:00') && strtotime($hourString) < strtotime('23:59:59') && strtotime($hourString) > strtotime('00:00:00') && strtotime($hourString) < strtotime('07:00:00') ) { echo($hourString); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 33
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 42
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 44
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
Branch analysis from position: 42
Branch analysis from position: 33
Branch analysis from position: 24
filename:       /in/aPtD6
function name:  (null)
number of ops:  45
compiled vars:  !0 = $date, !1 = $hourString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'H%3Ai'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    7     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '12%3A00%3A00'
         13        DO_ICALL                                         $8      
         14        IS_SMALLER                                       ~9      $8, $7
         15      > JMPZ_EX                                          ~9      ~9, ->24
         16    >   INIT_FCALL                                               'strtotime'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '23%3A59%3A59'
         21        DO_ICALL                                         $11     
         22        IS_SMALLER                                       ~12     $10, $11
         23        BOOL                                             ~9      ~12
         24    > > JMPZ_EX                                          ~9      ~9, ->33
    8    25    >   INIT_FCALL                                               'strtotime'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $13     
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 '00%3A00%3A00'
         30        DO_ICALL                                         $14     
         31        IS_SMALLER                                       ~15     $14, $13
         32        BOOL                                             ~9      ~15
         33    > > JMPZ_EX                                          ~9      ~9, ->42
         34    >   INIT_FCALL                                               'strtotime'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $16     
         37        INIT_FCALL                                               'strtotime'
         38        SEND_VAL                                                 '07%3A00%3A00'
         39        DO_ICALL                                         $17     
         40        IS_SMALLER                                       ~18     $16, $17
         41        BOOL                                             ~9      ~18
         42    > > JMPZ                                                     ~9, ->44
   10    43    >   ECHO                                                     !1
   11    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.03 ms | 1400 KiB | 15 Q