3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jgLef
function name:  (null)
number of ops:  33
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        IS_SMALLER                                               6, $0
          4      > JMPZ                                                     ~1, ->19
    4     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y'
          7        DO_ICALL                                         $2      
          8        CONCAT                                           ~3      $2, '+%2F+'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '%2B1+year'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        CONCAT                                           ~6      ~3, $5
         17        ECHO                                                     ~6
         18      > JMP                                                      ->32
    6    19    >   INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'Y'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAL                                                 '-1+year'
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                         $8      
         26        CONCAT                                           ~9      $8, '+%2F+'
         27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'Y'
         29        DO_ICALL                                         $10     
         30        CONCAT                                           ~11     ~9, $10
         31        ECHO                                                     ~11
    7    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.47 ms | 1396 KiB | 17 Q