3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_time = strtotime('now'); if ($current_time > strtotime('saturday this week 5:00pm') && $current_time < strtotime('sunday this week 9:00am')) { echo "first message"; } else { echo "second message"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/lPtds
function name:  (null)
number of ops:  19
compiled vars:  !0 = $current_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'saturday+this+week+5%3A00pm'
          6        DO_ICALL                                         $3      
          7        IS_SMALLER                                       ~4      $3, !0
          8      > JMPZ_EX                                          ~4      ~4, ->14
          9    >   INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 'sunday+this+week+9%3A00am'
         11        DO_ICALL                                         $5      
         12        IS_SMALLER                                       ~6      !0, $5
         13        BOOL                                             ~4      ~6
         14    > > JMPZ                                                     ~4, ->17
    5    15    >   ECHO                                                     'first+message'
         16      > JMP                                                      ->18
    6    17    >   ECHO                                                     'second+message'
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.51 ms | 1395 KiB | 15 Q