3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); $now = date('now'); $start = date('00:30'); $end = date('05:30'); if ($now > $start && $now < $end) die(); echo "ok"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/58UWJ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $now, !1 = $start, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'now'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 '00%3A30'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 '05%3A30'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
    7    15        IS_SMALLER                                       ~10     !1, !0
         16      > JMPZ_EX                                          ~10     ~10, ->19
         17    >   IS_SMALLER                                       ~11     !0, !2
         18        BOOL                                             ~10     ~11
         19    > > JMPZ                                                     ~10, ->21
         20    > > EXIT                                                     
    8    21    >   ECHO                                                     'ok'
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.75 ms | 1395 KiB | 17 Q