3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(date('n', strtotime('2018-07-31')) == date('n')){ echo 'It is current month'; } else{ echo 'not current month'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GVR17
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'n'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2018-07-31'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'n'
          9        DO_ICALL                                         $2      
         10        IS_EQUAL                                                 $1, $2
         11      > JMPZ                                                     ~3, ->14
    3    12    >   ECHO                                                     'It+is+current+month'
    2    13      > JMP                                                      ->15
    5    14    >   ECHO                                                     'not+current+month'
    6    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1010 KiB | 15 Q