3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = '0010'; var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '2345'; if ($curtime <= '0100' || ($curtime >= '0830' && $curtime <= '2359')) { if ($curtime >= $trading_hour['AT_open'] && $curtime <= $trading_hour['AT_close']) { echo 'AT'; } else { echo 'N'; } } else { echo 'stop'; }
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 = 27
Branch analysis from position: 16
2 jumps found. (Code = 46) 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 = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 22
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 15
filename:       /in/bmcME
function name:  (null)
number of ops:  29
compiled vars:  !0 = $curtime, !1 = $trading_hour
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0010'
    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                                                  '2345'
    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, ->27
   11    16    >   FETCH_DIM_R                                      ~9      !1, 'AT_open'
         17        IS_SMALLER_OR_EQUAL                              ~10     ~9, !0
         18      > JMPZ_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'
         26    > > JMP                                                      ->28
   22    27    >   ECHO                                                     'stop'
   23    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.18 ms | 1396 KiB | 15 Q