3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1396 KiB | 17 Q