3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fromUser = new DateTime("2012-03-01"); $Y = $fromUser->format('Y'); if ( $fromUser > new DateTime("$Y-02-01 00:00:00") && $fromUser < new DateTime("$Y-04-30 23:59:59")) { echo 'YES'; return true; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/56Ca6
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fromUser, !1 = $Y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2012-03-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'Y'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    6     8        NEW                                              $7      'DateTime'
          9        NOP                                                      
         10        FAST_CONCAT                                      ~8      !1, '-02-01+00%3A00%3A00'
         11        SEND_VAL_EX                                              ~8
         12        DO_FCALL                                      0          
         13        IS_SMALLER                                       ~10     $7, !0
         14      > JMPZ_EX                                          ~10     ~10, ->22
    7    15    >   NEW                                              $11     'DateTime'
         16        NOP                                                      
         17        FAST_CONCAT                                      ~12     !1, '-04-30+23%3A59%3A59'
         18        SEND_VAL_EX                                              ~12
         19        DO_FCALL                                      0          
         20        IS_SMALLER                                       ~14     !0, $11
         21        BOOL                                             ~10     ~14
         22    > > JMPZ                                                     ~10, ->25
    9    23    >   ECHO                                                     'YES'
   10    24      > RETURN                                                   <true>
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.35 ms | 1394 KiB | 13 Q