3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.39 ms | 1396 KiB | 15 Q