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')) { 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 = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 24
filename:       /in/vr4HH
function name:  (null)
number of ops:  27
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
    6     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                                                     ~9, ->26
    7    25    >   ECHO                                                     !1
    8    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.75 ms | 1395 KiB | 15 Q