3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doo($start, $end, $noow){ //Check if we are within the set time $start = Date("Hi", strtotime($start)); $end = Date("Hi", strtotime($end)); $now = Date("Hi", strtotime($now)); if($start < $now && $end > $now){ //We need to validate before sending. echo "Good"; } } doo("8:00", "5:00", "10:00");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vHuQI
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'doo'
          1        SEND_VAL                                                 '8%3A00'
          2        SEND_VAL                                                 '5%3A00'
          3        SEND_VAL                                                 '10%3A00'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function doo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 31
filename:       /in/vHuQI
function name:  doo
number of ops:  34
compiled vars:  !0 = $start, !1 = $end, !2 = $noow, !3 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    6     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Hi'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    7    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Hi'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !1, $8
    8    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'Hi'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                         $11     
         26        ASSIGN                                                   !3, $11
   10    27        IS_SMALLER                                       ~13     !0, !3
         28      > JMPZ_EX                                          ~13     ~13, ->31
         29    >   IS_SMALLER                                       ~14     !3, !1
         30        BOOL                                             ~13     ~14
         31    > > JMPZ                                                     ~13, ->33
   12    32    >   ECHO                                                     'Good'
   14    33    > > RETURN                                                   null

End of function doo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.09 ms | 1402 KiB | 18 Q