3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = '0010'; var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '2500'; $tmp = '2500' - '2400'; var_dump(sprintf('%04d', $tmp)); 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 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 35
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 23
filename:       /in/EQJfS
function name:  (null)
number of ops:  37
compiled vars:  !0 = $curtime, !1 = $trading_hour, !2 = $tmp
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                                                  '2500'
    9     8        ASSIGN                                                   !2, 100
   10     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%2504d'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
   12    16        IS_SMALLER_OR_EQUAL                              ~10     !0, '0100'
         17      > JMPNZ_EX                                         ~10     ~10, ->23
         18    >   IS_SMALLER_OR_EQUAL                              ~11     '0830', !0
         19      > JMPZ_EX                                          ~11     ~11, ->22
         20    >   IS_SMALLER_OR_EQUAL                              ~12     !0, '2359'
         21        BOOL                                             ~11     ~12
         22    >   BOOL                                             ~10     ~11
         23    > > JMPZ                                                     ~10, ->35
   14    24    >   FETCH_DIM_R                                      ~13     !1, 'AT_open'
         25        IS_SMALLER_OR_EQUAL                              ~14     ~13, !0
         26      > JMPZ_EX                                          ~14     ~14, ->30
         27    >   FETCH_DIM_R                                      ~15     !1, 'AT_close'
         28        IS_SMALLER_OR_EQUAL                              ~16     !0, ~15
         29        BOOL                                             ~14     ~16
         30    > > JMPZ                                                     ~14, ->33
   16    31    >   ECHO                                                     'AT'
         32      > JMP                                                      ->34
   20    33    >   ECHO                                                     'N'
         34    > > JMP                                                      ->36
   25    35    >   ECHO                                                     'stop'
   26    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1400 KiB | 17 Q