3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('n'); if(date('n') > 6){ echo date('Y') .' / '. date('Y', strtotime('+1 year')); }else{ echo date('Y', strtotime('-1 year')).' / '.date('Y') ; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mp4EM
function name:  (null)
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'n'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'n'
          6        DO_ICALL                                         $1      
          7        IS_SMALLER                                               6, $1
          8      > JMPZ                                                     ~2, ->23
    5     9    >   INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y'
         11        DO_ICALL                                         $3      
         12        CONCAT                                           ~4      $3, '+%2F+'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '%2B1+year'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                         $6      
         20        CONCAT                                           ~7      ~4, $6
         21        ECHO                                                     ~7
         22      > JMP                                                      ->36
    7    23    >   INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'Y'
         25        INIT_FCALL                                               'strtotime'
         26        SEND_VAL                                                 '-1+year'
         27        DO_ICALL                                         $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                         $9      
         30        CONCAT                                           ~10     $9, '+%2F+'
         31        INIT_FCALL                                               'date'
         32        SEND_VAL                                                 'Y'
         33        DO_ICALL                                         $11     
         34        CONCAT                                           ~12     ~10, $11
         35        ECHO                                                     ~12
    8    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.89 ms | 1401 KiB | 17 Q