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")); $value = $nonNewDay[date('N')-1]; if ((strtotime($value[0]) <= $current_date) && ($current_date < strtotime($value[1]))) { die('Blocked'); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/uE3Ti
function name:  (null)
number of ops:  29
compiled vars:  !0 = $nonNewDay, !1 = $current_date, !2 = $value
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                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   36     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'N'
         10        DO_ICALL                                         $7      
         11        SUB                                              ~8      $7, 1
         12        FETCH_DIM_R                                      ~9      !0, ~8
         13        ASSIGN                                                   !2, ~9
   37    14        INIT_FCALL                                               'strtotime'
         15        FETCH_DIM_R                                      ~11     !2, 0
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                         $12     
         18        IS_SMALLER_OR_EQUAL                              ~13     $12, !1
         19      > JMPZ_EX                                          ~13     ~13, ->26
         20    >   INIT_FCALL                                               'strtotime'
         21        FETCH_DIM_R                                      ~14     !2, 1
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                         $15     
         24        IS_SMALLER                                       ~16     !1, $15
         25        BOOL                                             ~13     ~16
         26    > > JMPZ                                                     ~13, ->28
   38    27    > > EXIT                                                     'Blocked'
   40    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1388 KiB | 17 Q