3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = date('Hi'); var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '0100'; if ($curtime <= '0100' || ($curtime >= '0830' && $curtime <= '2359')) { if ($curtime >= $trading_hour['AT_open'] || $curtime <= $trading_hour['AT_close']) { echo 'AT'; } else { echo 'N'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 29
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 29
Branch analysis from position: 17
Branch analysis from position: 18
filename:       /in/Sm1Wb
function name:  (null)
number of ops:  30
compiled vars:  !0 = $curtime, !1 = $trading_hour
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Hi'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        ASSIGN_DIM                                               !1, 'AT_open'
          8        OP_DATA                                                  '1715'
    7     9        ASSIGN_DIM                                               !1, 'AT_close'
         10        OP_DATA                                                  '0100'
    9    11        IS_SMALLER_OR_EQUAL                              ~7      !0, '0100'
         12      > JMPNZ_EX                                         ~7      ~7, ->18
         13    >   IS_SMALLER_OR_EQUAL                              ~8      '0830', !0
         14      > JMPZ_EX                                          ~8      ~8, ->17
         15    >   IS_SMALLER_OR_EQUAL                              ~9      !0, '2359'
         16        BOOL                                             ~8      ~9
         17    >   BOOL                                             ~7      ~8
         18    > > JMPZ                                                     ~7, ->29
   11    19    >   FETCH_DIM_R                                      ~10     !1, 'AT_open'
         20        IS_SMALLER_OR_EQUAL                              ~11     ~10, !0
         21      > JMPNZ_EX                                         ~11     ~11, ->25
         22    >   FETCH_DIM_R                                      ~12     !1, 'AT_close'
         23        IS_SMALLER_OR_EQUAL                              ~13     !0, ~12
         24        BOOL                                             ~11     ~13
         25    > > JMPZ                                                     ~11, ->28
   13    26    >   ECHO                                                     'AT'
         27      > JMP                                                      ->29
   17    28    >   ECHO                                                     'N'
   19    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.34 ms | 1396 KiB | 17 Q