3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contactableFrom = '070000'; $contactableTo = '090000'; $currentTime = (new \DateTime())->format('His'); if ($currentTime < $contactableFrom || $currentTime > $contactableTo) { echo 'false'; } else { echo 'true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/6LVuJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $contactableFrom, !1 = $contactableTo, !2 = $currentTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '070000'
    4     1        ASSIGN                                                   !1, '090000'
    5     2        NEW                                              $5      'DateTime'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $5, 'format'
          5        SEND_VAL_EX                                              'His'
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
    7     8        IS_SMALLER                                       ~9      !2, !0
          9      > JMPNZ_EX                                         ~9      ~9, ->12
         10    >   IS_SMALLER                                       ~10     !1, !2
         11        BOOL                                             ~9      ~10
         12    > > JMPZ                                                     ~9, ->15
    8    13    >   ECHO                                                     'false'
         14      > JMP                                                      ->16
   10    15    >   ECHO                                                     'true'
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.22 ms | 1385 KiB | 13 Q