3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = '09/14/2018'; $stopDate = '03/08/2019'; $startDate = strtotime($startDate); $stopDate= strtotime($stopDate); $nextDate =strtotime("today"); if ($nextDate >= $startDate && $nextDate <= $stopDate) { echo "Do your stuff here"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 18
filename:       /in/BWZN5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $startDate, !1 = $stopDate, !2 = $nextDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '09%2F14%2F2018'
    3     1        ASSIGN                                                   !1, '03%2F08%2F2019'
    4     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !0, $5
    5     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    6    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'today'
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    8    14        IS_SMALLER_OR_EQUAL                              ~11     !0, !2
         15      > JMPZ_EX                                          ~11     ~11, ->18
         16    >   IS_SMALLER_OR_EQUAL                              ~12     !2, !1
         17        BOOL                                             ~11     ~12
         18    > > JMPZ                                                     ~11, ->20
    9    19    >   ECHO                                                     'Do+your+stuff+here'
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.9 ms | 1005 KiB | 15 Q