3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_date = strtotime(date("g:00 a")); foreach ($current_date as $key => $value) { if ((strtotime("2:00 pm") <= $current_date) && ($current_date < strtotime("11:00 pm"))) { print("Buya"); } print($index); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 24
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
Branch analysis from position: 20
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/4rpoX
function name:  (null)
number of ops:  26
compiled vars:  !0 = $current_date, !1 = $value, !2 = $key, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'g%3A00+a'
          3        DO_ICALL                                         $4      
          4        SEND_VAR                                                 $4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    3     7      > FE_RESET_R                                       $7      !0, ->24
          8    > > FE_FETCH_R                                       ~8      $7, !1, ->24
          9    >   ASSIGN                                                   !2, ~8
    4    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2%3A00+pm'
         12        DO_ICALL                                         $10     
         13        IS_SMALLER_OR_EQUAL                              ~11     $10, !0
         14      > JMPZ_EX                                          ~11     ~11, ->20
         15    >   INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '11%3A00+pm'
         17        DO_ICALL                                         $12     
         18        IS_SMALLER                                       ~13     !0, $12
         19        BOOL                                             ~11     ~13
         20    > > JMPZ                                                     ~11, ->22
    5    21    >   ECHO                                                     'Buya'
    7    22    >   ECHO                                                     !3
    3    23      > JMP                                                      ->8
         24    >   FE_FREE                                                  $7
    9    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192 ms | 1396 KiB | 17 Q